Class: Delorean::ErrorOp
- Defined in:
- lib/delorean/nodes.rb
Overview
hacky, for backwards compatibility
Instance Method Summary collapse
Instance Method Details
#check(context) ⇒ Object
200 201 202 |
# File 'lib/delorean/nodes.rb', line 200 def check(context, *) args.text_value=='' ? [] : args.check(context) end |
#rewrite(context) ⇒ Object
204 205 206 |
# File 'lib/delorean/nodes.rb', line 204 def rewrite(context, *) args.text_value!='' ? "_err(#{args.rewrite(context)})" : "binding.pry; 0" end |