Class: Delorean::NodeCall
- Defined in:
- lib/delorean/nodes.rb
Instance Method Summary collapse
Instance Method Details
#check(context) ⇒ Object
566 567 568 |
# File 'lib/delorean/nodes.rb', line 566 def check(context, *) al.text_value.empty? ? [] : al.check(context) end |
#rewrite(context, node_name) ⇒ Object
570 571 572 573 574 |
# File 'lib/delorean/nodes.rb', line 570 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 |