/usr/lib/ruby/vendor_ruby/sass/tree/variable_node.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
module Tree
# A dynamic node representing a variable definition.
#
# @see Sass::Tree
class VariableNode < Node
# The name of the variable.
# @return [String]
attr_reader :name
# The parse tree for the variable value.
# @return [Script::Tree::Node]
attr_accessor :expr
# Whether this is a guarded variable assignment (`!default`).
# @return [Boolean]
attr_reader :guarded
# Whether this is a global variable assignment (`!global`).
# @return [Boolean]
attr_reader :global
# @param name [String] The name of the variable
# @param expr [Script::Tree::Node] See \{#expr}
# @param guarded [Boolean] See \{#guarded}
# @param global [Boolean] See \{#global}
def initialize(name, expr, guarded, global)
@name = name
@expr = expr
@guarded = guarded
@global = global
super()
end
end
end
end
|