class Sass::Script::ArgList - sass-3.2.19 Documentation

# class Sass::Script::ArgList

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.

### Attributes

keywords_accessed[RW]

Whether {#keywords} has been accessed. If so, we assume that all keywords were valid for the function that created this ArgList.

@return [Boolean]

### Public Class Methods

new(value, keywords, separator) click to toggle source

Creates a new argument list.

@param value [Array<Literal>] See {List#value}. @param keywords [Hash<String, Literal>] See {#keywords} @param separator [String] See {List#separator}.

Calls superclass method

    # File lib/sass/script/arg_list.rb, line 19
    def initialize(value, keywords, separator)
      super(value, separator)
      @keywords = keywords
    end

### Public Instance Methods

children() click to toggle source

@see Sass::Script::Node#children

Calls superclass method

    # File lib/sass/script/arg_list.rb, line 33
    def children
      super + @keywords.values
    end

deep_copy() click to toggle source

@see Sass::Script::Node#deep_copy

Calls superclass method

    # File lib/sass/script/arg_list.rb, line 38
    def deep_copy
      node = super
      node.instance_variable_set('@keywords',
        Sass::Util.map_hash(@keywords) {|k, v| [k, v.deep_copy]})
      node
    end

keywords() click to toggle source

The keyword arguments attached to this list.

@return [Hash<String, Literal>]

    # File lib/sass/script/arg_list.rb, line 27
    def keywords
      @keywords_accessed = true
      @keywords
    end

### Protected Instance Methods

_perform(environment) click to toggle source

@see Node#_perform

    # File lib/sass/script/arg_list.rb, line 48
    def _perform(environment)
      self
    end