Class: CSSPool::Terms::Math

Inherits:
Node
  • Object
show all
Defined in:
lib/csspool/terms/math.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#inner_end_pos, #inner_start_pos, #outer_end_pos, #outer_start_pos

Instance Method Summary collapse

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

#expressionObject

Returns the value of attribute expression.



6
7
8
# File 'lib/csspool/terms/math.rb', line 6

def expression
  @expression
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/csspool/terms/math.rb', line 5

def name
  @name
end

#operatorObject

Returns the value of attribute operator.



7
8
9
# File 'lib/csspool/terms/math.rb', line 7

def operator
  @operator
end

#parse_locationObject

Returns the value of attribute parse_location.



8
9
10
# File 'lib/csspool/terms/math.rb', line 8

def parse_location
  @parse_location
end