Sha256: a47f2a3b708dff4907f7cdb7c604232cb1f701399eb0c4f715b47bb4745235d3

Contents?: true

Size: 1.17 KB

Versions: 88

Compression:

Stored size: 1.17 KB

Contents

module Sass::Script::Value
  # A SassScript object representing a variable argument list. This works just
  # like a normal list, but can also contain keyword arguments.
  #
  # The keyword arguments attached to this list are unused except when this is
  # passed as a glob argument to a function or mixin.
  class ArgList < List
    # Whether \{#keywords} has been accessed. If so, we assume that all keywords
    # were valid for the function that created this ArgList.
    #
    # @return [Boolean]
    attr_accessor :keywords_accessed

    # Creates a new argument list.
    #
    # @param value [Array<Value>] See \{List#value}.
    # @param keywords [Hash<String, Value>, NormalizedMap<Value>] See \{#keywords}
    # @param separator [String] See \{List#separator}.
    def initialize(value, keywords, separator)
      super(value, separator)
      if keywords.is_a?(Sass::Util::NormalizedMap)
        @keywords = keywords
      else
        @keywords = Sass::Util::NormalizedMap.new(keywords)
      end
    end

    # The keyword arguments attached to this list.
    #
    # @return [NormalizedMap<Value>]
    def keywords
      @keywords_accessed = true
      @keywords
    end
  end
end

Version data entries

88 entries across 85 versions & 7 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
brakeman-4.4.0 bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
brakeman-4.3.1 bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
brakeman-4.3.0 bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
brakeman-4.2.1 bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
brakeman-4.2.0 bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
brakeman-4.1.1 bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
brakeman-4.1.0 bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
brakeman-4.0.1 bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
brakeman-4.0.0 bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
brakeman-3.7.2 bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
brakeman-3.7.1 bundle/ruby/2.3.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb
sass-3.4.25 lib/sass/script/value/arg_list.rb
brakeman-3.7.0 bundle/ruby/2.3.0/gems/sass-3.4.24/lib/sass/script/value/arg_list.rb
brakeman-3.6.2 bundle/ruby/2.3.0/gems/sass-3.4.24/lib/sass/script/value/arg_list.rb
sass-3.4.24 lib/sass/script/value/arg_list.rb
brakeman-3.6.1 bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/script/value/arg_list.rb
brakeman-3.6.0 bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/script/value/arg_list.rb
brakeman-3.5.0 bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/script/value/arg_list.rb