Sha256: 033b09332a31a5971cabac74102f1be31915c803f8e8b6fe461d6f024a9748b1
Contents?: true
Size: 960 Bytes
Versions: 3
Compression:
Stored size: 960 Bytes
Contents
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<Script::Node>] attr_reader :args # A hash from keyword argument names to values. # @return [{String => Script::Node}] attr_reader :keywords # @param name [String] The name of the mixin # @param args [Array<Script::Node>] See \{#args} # @param keywords [{String => Script::Node}] See \{#keywords} def initialize(name, args, keywords) @name = name @args = args @keywords = keywords super() end # Returns sub nodes that are not tree children. def subnodes Array(args) + (keywords||{}).values end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sass-3.1.5 | lib/sass/tree/mixin_node.rb |
sass-3.1.4 | lib/sass/tree/mixin_node.rb |
sass-3.2.0.alpha.11 | lib/sass/tree/mixin_node.rb |