Class: Less2Sass::Less::Tree::UnitNode
- Defined in:
- lib/less2sass/less/tree/unit_node.rb
Instance Attribute Summary collapse
-
#backupUnit ⇒ Object
Returns the value of attribute backupUnit.
-
#denominator ⇒ Object
Returns the value of attribute denominator.
-
#numerator ⇒ Object
Returns the value of attribute numerator.
Attributes inherited from Node
#children, #has_children, #has_parent, #line, #parent, #ref_vars
Instance Method Summary collapse
Methods inherited from Node
#<<, #==, #contains_variables?, #creates_context?, #each, #get_referenced_variable_names, #initialize, #to_sass, #transform
Constructor Details
This class inherits a constructor from Less2Sass::Less::Tree::Node
Instance Attribute Details
#backupUnit ⇒ Object
Returns the value of attribute backupUnit.
7 8 9 |
# File 'lib/less2sass/less/tree/unit_node.rb', line 7 def backupUnit @backupUnit end |
#denominator ⇒ Object
Returns the value of attribute denominator.
6 7 8 |
# File 'lib/less2sass/less/tree/unit_node.rb', line 6 def denominator @denominator end |
#numerator ⇒ Object
Returns the value of attribute numerator.
5 6 7 |
# File 'lib/less2sass/less/tree/unit_node.rb', line 5 def numerator @numerator end |
Instance Method Details
#to_s ⇒ Object
9 10 11 12 13 |
# File 'lib/less2sass/less/tree/unit_node.rb', line 9 def to_s val = @numerator[0].to_s val += @denominator[0] unless @denominator.nil? || @denominator.empty? val end |