Class: Delorean::ErrorOp
- Defined in:
- lib/delorean/nodes.rb
Overview
hacky, for backwards compatibility
Instance Method Summary collapse
Instance Method Details
#check(context) ⇒ Object
265 266 267 |
# File 'lib/delorean/nodes.rb', line 265 def check(context, *) args.text_value == '' ? [] : args.check(context) end |
#rewrite(context) ⇒ Object
269 270 271 272 273 |
# File 'lib/delorean/nodes.rb', line 269 def rewrite(context, *) args.text_value != '' ? "_err(#{args.rewrite(context)})" : 'binding.pry; 0' end |