Module: Stylus::Runtime
- Included in:
- Stylus
- Defined in:
- lib/stylus/runtime.rb
Overview
Internal: Module responsible for the ExecJS interaction. Besides handling the compilation execution, this module provide a runtime validation to ensure that the Node.JS binary is available to use.
Instance Method Summary collapse
-
#exec(*arguments) ⇒ Object
Internal: Calls a specific function on the Node.JS context.
Instance Method Details
#exec(*arguments) ⇒ Object
Internal: Calls a specific function on the Node.JS context.
Example
exec('version', 2) # => '2'
Returns The function returned value.
14 15 16 17 |
# File 'lib/stylus/runtime.rb', line 14 def exec(*arguments) check_availability! context.call(*arguments) end |