Class: Unparser::Writer::Send::Regular
- Inherits:
-
Unparser::Writer::Send
- Object
- Unparser::Writer::Send
- Unparser::Writer::Send::Regular
- Defined in:
- lib/unparser/writer/send/regular.rb
Overview
Writer for “regular” receiver.selector(arguments…) case
Constant Summary
Constants inherited from Unparser::Writer::Send
INDEX_ASSIGN, INDEX_REFERENCE, OPERATORS
Constants included from Generation
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
Instance Method Summary collapse
- #dispatch ⇒ Object
- #emit_arguments_without_heredoc_body ⇒ Object
- #emit_receiver ⇒ Object
- #emit_send_mlhs ⇒ Object
Methods inherited from Unparser::Writer::Send
#emit_heredoc_reminders, #emit_mlhs, #emit_selector
Methods included from Unparser::Writer
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
#dispatch ⇒ Object
8 9 10 11 12 |
# File 'lib/unparser/writer/send/regular.rb', line 8 def dispatch emit_receiver emit_selector emit_arguments end |
#emit_arguments_without_heredoc_body ⇒ Object
18 19 20 |
# File 'lib/unparser/writer/send/regular.rb', line 18 def emit_arguments_without_heredoc_body emit_normal_arguments if arguments.any? end |
#emit_receiver ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/unparser/writer/send/regular.rb', line 22 def emit_receiver return unless receiver emit_send_regular(receiver) emit_operator end |
#emit_send_mlhs ⇒ Object
14 15 16 |
# File 'lib/unparser/writer/send/regular.rb', line 14 def emit_send_mlhs dispatch end |