Class: CSSPool::Terms::Number
- Defined in:
- lib/csspool/terms/number.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
-
#unary_operator ⇒ Object
Returns the value of attribute unary_operator.
Attributes inherited from Ident
#operator, #parse_location, #value
Instance Method Summary collapse
-
#initialize(type, unary_operator, value, operator, parse_location) ⇒ Number
constructor
A new instance of Number.
Methods included from Visitable
#==, #accept, #children, #each, #hash, #to_css
Constructor Details
#initialize(type, unary_operator, value, operator, parse_location) ⇒ Number
Returns a new instance of Number.
7 8 9 10 11 |
# File 'lib/csspool/terms/number.rb', line 7 def initialize type, unary_operator, value, operator, parse_location @type = type @unary_operator = unary_operator super(value, operator, parse_location) end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/csspool/terms/number.rb', line 4 def type @type end |
#unary_operator ⇒ Object
Returns the value of attribute unary_operator.
5 6 7 |
# File 'lib/csspool/terms/number.rb', line 5 def unary_operator @unary_operator end |