gems.sass-3.2.8.lib.sass.tree.mixin_node.rb Maven / Gradle / Ivy
Go to download
Sass makes CSS fun again. Sass is an extension of CSS3, adding nested rules, variables, mixins, selector
inheritance, and more. It's translated to well-formatted, standard CSS using the command line tool or a
web-framework plugin.
This is a repackaged GEM in a JAR format of the sass-lang.gem package. The sass-gems package version
follows the sass-lang.gem versions located http://rubyforge.org/frs/?group_id=9702. Simply change
the version of this package to download and repackage the same GEM version.
require 'sass/tree/node'
module Sass::Tree
# A static node representing a mixin include.
# When in a static tree, the sole purpose is to wrap exceptions
# to add the mixin to the backtrace.
#
# @see Sass::Tree
class MixinNode < Node
# The name of the mixin.
# @return [String]
attr_reader :name
# The arguments to the mixin.
# @return [Array]
attr_accessor :args
# A hash from keyword argument names to values.
# @return [{String => Script::Node}]
attr_accessor :keywords
# The splat argument for this mixin, if one exists.
#
# @return [Script::Node?]
attr_accessor :splat
# @param name [String] The name of the mixin
# @param args [Array] See \{#args}
# @param splat [Script::Node] See \{#splat}
# @param keywords [{String => Script::Node}] See \{#keywords}
def initialize(name, args, keywords, splat)
@name = name
@args = args
@keywords = keywords
@splat = splat
super()
end
end
end