Class: Unparser::Emitter::Send
- Inherits:
-
Unparser::Emitter
- Object
- Unparser::Emitter
- Unparser::Emitter::Send
- Defined in:
- lib/unparser/emitter/send.rb,
lib/unparser/emitter/send/index.rb,
lib/unparser/emitter/send/unary.rb,
lib/unparser/emitter/send/binary.rb,
lib/unparser/emitter/send/regular.rb
Overview
Emitter for send
Defined Under Namespace
Classes: Binary, Index, Regular, Unary
Constant Summary collapse
- INDEX_PARENS =
IceNine.deep_freeze(%w([ ]))
- NORMAL_PARENS =
IceNine.deep_freeze(%w[( )])
- INDEX_REFERENCE =
:'[]'
- INDEX_ASSIGN =
:'[]='
- ASSIGN_SUFFIX =
'='.freeze
- AMBIGOUS =
[:irange, :erange].to_set.freeze
Constants inherited from Unparser::Emitter
CURLY_BRACKETS, DEFAULT_DELIMITER, NOINDENT, REGISTRY
Constants included from Constants
Constants::BINARY_OPERATORS, Constants::COMMENT, 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::M_PC, Constants::M_PO, Constants::NL, Constants::TERMINATED, Constants::T_AMP, Constants::T_AND, Constants::T_ASN, Constants::T_ASR, Constants::T_COLON, Constants::T_DCL, Constants::T_DLT, Constants::T_DOT, Constants::T_DSPLAT, Constants::T_LT, Constants::T_NEG, Constants::T_OR, Constants::T_PIPE, Constants::T_SPLAT, Constants::UNARY_OPERATORS, Constants::WS
Instance Method Summary collapse
-
#terminated? ⇒ true, false
private
Test for terminated expression.
Methods inherited from Unparser::Emitter
emit, emitter, #write_to_buffer
Instance Method Details
#terminated? ⇒ true, false
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Test for terminated expression
29 30 31 32 33 34 35 |
# File 'lib/unparser/emitter/send.rb', line 29 def terminated? [ Unary, Index::Reference, Regular ].include?(effective_emitter) end |