Class: Delorean::NodeCall
- Defined in:
- lib/delorean/nodes.rb
Instance Method Summary collapse
Instance Method Details
#check(context) ⇒ Object
414 415 416 |
# File 'lib/delorean/nodes.rb', line 414 def check(context, *) al.text_value.empty? ? [] : al.check(context) end |
#rewrite(context, node_name) ⇒ Object
418 419 420 421 422 |
# File 'lib/delorean/nodes.rb', line 418 def rewrite(context, node_name) var = "_h#{context.hcount}" res = al.text_value.empty? ? '' : al.rewrite(context, var) "(#{var}={}; #{res}; _node_call(#{node_name}, _e, #{var}))" end |