class Unparser::Emitter::Index::Assign
Emitter
for assign to index nodes
Constants
- NO_VALUE_PARENT
- VALUE_RANGE
Public Instance Methods
dispatch()
click to toggle source
# File lib/unparser/emitter/index.rb, line 47 def dispatch emit_receiver emit_operation(children[VALUE_RANGE]) write(' = ') visit(children.last) end
emit_heredoc_reminders()
click to toggle source
# File lib/unparser/emitter/index.rb, line 43 def emit_heredoc_reminders emitter(children.last).emit_heredoc_reminders end
emit_mlhs()
click to toggle source
# File lib/unparser/emitter/index.rb, line 54 def emit_mlhs emit_receiver emit_operation(children.drop(1)) end
Private Instance Methods
emit_operation(indices)
click to toggle source
# File lib/unparser/emitter/index.rb, line 61 def emit_operation(indices) parentheses('[', ']') do delimited(indices) end end