/usr/lib/ruby/vendor_ruby/sass/script/value/arg_list.rb is in ruby-sass 3.4.6-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | 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
|