Method: Delorean::BaseModule::BaseClass._node_call
- Defined in:
- lib/delorean/base.rb
._node_call(node, _e, params) ⇒ Object
190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/delorean/base.rb', line 190 def self._node_call(node, _e, params) context = _e[:_engine] # a node call is being called with amended args return node + params if node.is_a?(NodeCall) engine = node.is_a?(Class) && context.module_name != node.module_name ? context.get_import_engine(node.module_name) : context NodeCall.new(_e, engine, node || self, params) end |