Class: CSSPool::Terms::Function
- Defined in:
- lib/csspool/terms/function.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#params ⇒ Object
Returns the value of attribute params.
-
#parse_location ⇒ Object
Returns the value of attribute parse_location.
Instance Method Summary collapse
-
#initialize(name, params, operator = nil, parse_location = nil) ⇒ Function
constructor
A new instance of Function.
Methods inherited from Node
#==, #accept, #children, #each, #hash, #to_css, #to_minified_css
Constructor Details
#initialize(name, params, operator = nil, parse_location = nil) ⇒ 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 = nil, parse_location = nil @name = name @params = params @operator = operator @parse_location = parse_location end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/csspool/terms/function.rb', line 4 def name @name end |
#operator ⇒ Object
Returns the value of attribute operator.
7 8 9 |
# File 'lib/csspool/terms/function.rb', line 7 def operator @operator end |
#params ⇒ Object
Returns the value of attribute params.
5 6 7 |
# File 'lib/csspool/terms/function.rb', line 5 def params @params end |
#parse_location ⇒ Object
Returns the value of attribute parse_location.
6 7 8 |
# File 'lib/csspool/terms/function.rb', line 6 def parse_location @parse_location end |