Sha256: 5cdb99fe9408f713bcd8066653c26dc245c472218bf35bf16f5c1b04bc6ff9c8

Contents?: true

Size: 1.05 KB

Versions: 31

Compression:

Stored size: 1.05 KB

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::Tree::Node>]
    attr_accessor :args

    # A hash from keyword argument names to values.
    # @return [{String => Script::Tree::Node}]
    attr_accessor :keywords

    # The splat argument for this mixin, if one exists.
    #
    # @return [Script::Tree::Node?]
    attr_accessor :splat

    # @param name [String] The name of the mixin
    # @param args [Array<Script::Tree::Node>] See \{#args}
    # @param splat [Script::Tree::Node] See \{#splat}
    # @param keywords [{String => Script::Tree::Node}] See \{#keywords}
    def initialize(name, args, keywords, splat)
      @name = name
      @args = args
      @keywords = keywords
      @splat = splat
      super()
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sass-3.3.0.alpha.196 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.195 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.181 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.184 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.177 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.175 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.174 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.173 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.167 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.165 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.162 lib/sass/tree/mixin_node.rb