Sha256: f1c6d526e810a994cea2d8571eaeb8a6d95a4620fe49c355664577f8734e5620

Contents?: true

Size: 1.01 KB

Versions: 94

Compression:

Stored size: 1.01 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::Node>]
    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<Script::Node>] 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

Version data entries

94 entries across 89 versions & 11 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/sass-3.2.19/lib/sass/tree/mixin_node.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/sass-3.2.19/lib/sass/tree/mixin_node.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sass-3.2.5/lib/sass/tree/mixin_node.rb
xass-0.1.0 lib/sass/tree/mixin_node.rb
oreorenasass-3.4.14 lib/sass/tree/mixin_node.rb
oreorenasass-3.4.13 lib/sass/tree/mixin_node.rb
oreorenasass-3.4.12 lib/sass/tree/mixin_node.rb
oreorenasass-3.4.11 lib/sass/tree/mixin_node.rb
oreorenasass-3.4.9 lib/sass/tree/mixin_node.rb
oreorenasass-3.4.7 lib/sass/tree/mixin_node.rb
oreorenasass-3.4.5 lib/sass/tree/mixin_node.rb
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/sass-3.2.14/lib/sass/tree/mixin_node.rb
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/sass-3.2.14/lib/sass/tree/mixin_node.rb
sass-3.2.19 lib/sass/tree/mixin_node.rb
sass-3.2.18 lib/sass/tree/mixin_node.rb
sass-3.2.17 lib/sass/tree/mixin_node.rb
sass-3.2.16 lib/sass/tree/mixin_node.rb
sass-3.2.15 lib/sass/tree/mixin_node.rb
sass-3.2.14 lib/sass/tree/mixin_node.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/sass-3.2.13/lib/sass/tree/mixin_node.rb