Sha256: 56f56b34741161a84f2e6a294e9b83b1701658d85773c04d7b264443e8ee08ac

Contents?: true

Size: 1.51 KB

Versions: 24

Compression:

Stored size: 1.51 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 first splat argument for this mixin, if one exists.
    #
    # This could be a list of positional arguments, a map of keyword
    # arguments, or an arglist containing both.
    #
    # @return [Node?]
    attr_accessor :splat

    # The second splat argument for this mixin, if one exists.
    #
    # If this exists, it's always a map of keyword arguments, and
    # \{#splat} is always either a list or an arglist.
    #
    # @return [Node?]
    attr_accessor :kwarg_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 kwarg_splat [Script::Tree::Node] See \{#kwarg_splat}
    # @param keywords [{String => Script::Tree::Node}] See \{#keywords}
    def initialize(name, args, keywords, splat, kwarg_splat)
      @name = name
      @args = args
      @keywords = keywords
      @splat = splat
      @kwarg_splat = kwarg_splat
      super()
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
sass-3.3.0.rc.2 lib/sass/tree/mixin_node.rb
sass-3.3.0.rc.1 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.392 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.391 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.390 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.389 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.388 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.382 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.380 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.378 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.377 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.376 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.375 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.372 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.370 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.369 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.368 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.367 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.366 lib/sass/tree/mixin_node.rb
sass-3.3.0.alpha.364 lib/sass/tree/mixin_node.rb