Class: Less::Node::Function
- Defined in:
- lib/less/engine/nodes/function.rb
Overview
A CSS function, like rgb() or url()
it calls functions from the Functions module
Instance Attribute Summary
Attributes included from Entity
Instance Method Summary collapse
-
#evaluate ⇒ Object
Call the function.
-
#initialize(name, *args) ⇒ Function
constructor
A new instance of Function.
-
#method_missing(meth, *args) ⇒ Object
If the function isn’t found, we just print it out, this is the case for url(), for example,.
- #to_css ⇒ Object
Methods included from Entity
Methods included from Functions
Methods inherited from String
#blank?, #column_of, #indent, #line_of, #tabto, #treetop_camelize
Constructor Details
#initialize(name, *args) ⇒ Function
Returns a new instance of Function.
51 52 53 54 |
# File 'lib/less/engine/nodes/function.rb', line 51 def initialize name, *args @args = args.flatten super name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method