Class: Delorean::FnArgs
- Defined in:
- lib/delorean/nodes.rb
Instance Method Summary collapse
Instance Method Details
#arg_count ⇒ Object
642 643 644 645 |
# File 'lib/delorean/nodes.rb', line 642 def arg_count defined?(args_rest.args) && !args_rest.args.text_value.empty? ? 1 + args_rest.args.arg_count : 1 end |
#check(context) ⇒ Object
627 628 629 630 631 632 633 |
# File 'lib/delorean/nodes.rb', line 627 def check(context, *) [ arg0.check(context), (args_rest.args.check(context) if defined?(args_rest.args) && !args_rest.args.text_value.empty?) ].compact.sum end |
#rewrite(context) ⇒ Object
635 636 637 638 639 640 |
# File 'lib/delorean/nodes.rb', line 635 def rewrite(context) rest = ', ' + args_rest.args.rewrite(context) if defined?(args_rest.args) && !args_rest.args.text_value.empty? [arg0.rewrite(context), rest].compact.sum end |