Class: CSSPool::Terms::Ratio
- Defined in:
- lib/csspool/terms/ratio.rb
Instance Attribute Summary collapse
-
#denominator ⇒ Object
Returns the value of attribute denominator.
-
#numerator ⇒ Object
Returns the value of attribute numerator.
Attributes inherited from Ident
#operator, #parse_location, #value
Attributes inherited from Node
#inner_end_pos, #inner_start_pos, #outer_end_pos, #outer_start_pos
Instance Method Summary collapse
-
#initialize(numerator, denominator, parse_location = {}) ⇒ Ratio
constructor
A new instance of Ratio.
Methods inherited from Node
#==, #accept, #children, #each, #hash, #to_css, #to_minified_css
Constructor Details
#initialize(numerator, denominator, parse_location = {}) ⇒ Ratio
Returns a new instance of Ratio.
7 8 9 10 11 |
# File 'lib/csspool/terms/ratio.rb', line 7 def initialize numerator, denominator, parse_location = {} @numerator = numerator @denominator = denominator super(value, operator, parse_location) end |
Instance Attribute Details
#denominator ⇒ Object
Returns the value of attribute denominator.
5 6 7 |
# File 'lib/csspool/terms/ratio.rb', line 5 def denominator @denominator end |
#numerator ⇒ Object
Returns the value of attribute numerator.
4 5 6 |
# File 'lib/csspool/terms/ratio.rb', line 4 def numerator @numerator end |