Class: CSSPool::Terms::Function

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Visitable

#==, #accept, #children, #each, #hash, #to_css

Constructor Details

#initialize(name, params, operator, parse_location) ⇒ Function

Returns a new instance of Function.



9
10
11
12
13
14
# File 'lib/csspool/terms/function.rb', line 9

def initialize name, params, operator, parse_location
  @name   = name
  @params = params
  @operator = operator
  @parse_location = parse_location
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/csspool/terms/function.rb', line 4

def name
  @name
end

#operatorObject

Returns the value of attribute operator.



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

def operator
  @operator
end

#paramsObject

Returns the value of attribute params.



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

def params
  @params
end

#parse_locationObject

Returns the value of attribute parse_location.



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

def parse_location
  @parse_location
end