Class: Unparser::Emitter::Args
- Inherits:
-
Unparser::Emitter
- Object
- Unparser::Emitter
- Unparser::Emitter::Args
- Defined in:
- lib/unparser/emitter/args.rb
Overview
Arguments emitter
Constant Summary
Constants inherited from Unparser::Emitter
Constants included from Constants
Constants::BINARY_OPERATORS, Constants::KEYWORDS, Constants::K_ALIAS, Constants::K_AND, Constants::K_BEGIN, Constants::K_BREAK, Constants::K_CASE, Constants::K_CLASS, Constants::K_DEF, Constants::K_DEFINE, Constants::K_DEFINED, Constants::K_DO, Constants::K_EEND, Constants::K_ELSE, Constants::K_ELSIF, Constants::K_ENCODING, Constants::K_END, Constants::K_ENSURE, Constants::K_FALSE, Constants::K_FILE, Constants::K_FOR, Constants::K_IF, Constants::K_IN, Constants::K_MODULE, Constants::K_NEXT, Constants::K_NIL, Constants::K_NOT, Constants::K_OR, Constants::K_POSTEXE, Constants::K_PREEXE, Constants::K_REDO, Constants::K_RESCUE, Constants::K_RETRY, Constants::K_RETURN, Constants::K_SELF, Constants::K_SUPER, Constants::K_THEN, Constants::K_TRUE, Constants::K_UNDEF, Constants::K_UNLESS, Constants::K_UNTIL, Constants::K_WHEN, Constants::K_WHILE, Constants::K_YIELD, Constants::UNARY_OPERATORS
Constants included from Generation
Instance Method Summary collapse
Methods inherited from Unparser::Emitter
#dispatch, #emit_mlhs, emitter, #node_type
Methods included from Generation
#emit_heredoc_reminders, #symbol_name, #write_to_buffer
Methods included from NodeHelpers
#n, #n?, #s, #unwrap_single_begin
Instance Method Details
#emit_block_arguments ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/unparser/emitter/args.rb', line 7 def emit_block_arguments delimited(normal_arguments) write(',') if normal_arguments.one? && n_arg?(normal_arguments.first) emit_shadowargs end |
#emit_def_arguments ⇒ Object
15 16 17 |
# File 'lib/unparser/emitter/args.rb', line 15 def emit_def_arguments delimited(normal_arguments) end |
#emit_lambda_arguments ⇒ Object
19 20 21 22 |
# File 'lib/unparser/emitter/args.rb', line 19 def emit_lambda_arguments delimited(normal_arguments) emit_shadowargs end |