Class: Less::Node::Variable
Instance Attribute Summary
Attributes inherited from Property
#value
Attributes included from Entity
#parent
Instance Method Summary
collapse
Methods inherited from Property
#<<, #empty?, #eval?, #evaluate
Methods included from Entity
#path, #root
Methods inherited from String
#blank?, #column_of, #indent, #line_of, #tabto, #treetop_camelize
Constructor Details
#initialize(key, value = nil) ⇒ Variable
Returns a new instance of Variable.
41
42
43
|
# File 'lib/less/engine/nodes/property.rb', line 41
def initialize key, value = nil
super key.delete('@'), value
end
|
Instance Method Details
45
46
47
|
# File 'lib/less/engine/nodes/property.rb', line 45
def inspect
"@#{super}"
end
|
57
58
59
|
# File 'lib/less/engine/nodes/property.rb', line 57
def to_css
value.evaluate.to_css
end
|
53
54
55
|
# File 'lib/less/engine/nodes/property.rb', line 53
def to_ruby
value.evaluate.to_ruby
end
|
49
50
51
|
# File 'lib/less/engine/nodes/property.rb', line 49
def to_s
"@#{super}"
end
|