Class: CSSPool::Terms::Math
Instance Attribute Summary collapse
-
#expression ⇒ Object
Returns the value of attribute expression.
-
#name ⇒ Object
Returns the value of attribute name.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#parse_location ⇒ Object
Returns the value of attribute parse_location.
Attributes inherited from Node
#inner_end_pos, #inner_start_pos, #outer_end_pos, #outer_start_pos
Instance Method Summary collapse
-
#initialize(name, expression, operator = nil, parse_location = {}) ⇒ Math
constructor
A new instance of Math.
Methods inherited from Node
#==, #accept, #children, #each, #hash, #to_css, #to_minified_css
Constructor Details
#initialize(name, expression, operator = nil, parse_location = {}) ⇒ Math
Returns a new instance of Math.
10 11 12 13 14 15 |
# File 'lib/csspool/terms/math.rb', line 10 def initialize name, expression, operator = nil, parse_location = {} @name = name @expression = expression @operator = operator @parse_location = parse_location end |
Instance Attribute Details
#expression ⇒ Object
Returns the value of attribute expression.
6 7 8 |
# File 'lib/csspool/terms/math.rb', line 6 def expression @expression end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/csspool/terms/math.rb', line 5 def name @name end |
#operator ⇒ Object
Returns the value of attribute operator.
7 8 9 |
# File 'lib/csspool/terms/math.rb', line 7 def operator @operator end |
#parse_location ⇒ Object
Returns the value of attribute parse_location.
8 9 10 |
# File 'lib/csspool/terms/math.rb', line 8 def parse_location @parse_location end |