Class: Delorean::UnpackArgs
- Defined in:
- lib/delorean/nodes.rb
Instance Method Summary collapse
Instance Method Details
#check(context) ⇒ Object
490 491 492 493 494 |
# File 'lib/delorean/nodes.rb', line 490 def check(context, *) [arg0.text_value] + (defined?(args_rest.args) && !args_rest.args.text_value.empty? ? args_rest.args.check(context) : []) end |
#rewrite(context) ⇒ Object
496 497 498 499 500 |
# File 'lib/delorean/nodes.rb', line 496 def rewrite(context) arg0.rewrite(context) + (defined?(args_rest.args) && !args_rest.args.text_value.empty? ? ', ' + args_rest.args.rewrite(context) : '') end |