class Unparser::Emitter::BinaryAssign

Base class for and and or op-assign

Constants

MAP

Public Instance Methods

emit_heredoc_reminders() click to toggle source
# File lib/unparser/emitter/op_assign.rb, line 17
def emit_heredoc_reminders
  emitter(target).emit_heredoc_reminders
  emitter(expression).emit_heredoc_reminders
end

Private Instance Methods

dispatch() click to toggle source
# File lib/unparser/emitter/op_assign.rb, line 24
def dispatch
  emitter(target).emit_mlhs
  write(' ', MAP.fetch(node.type), ' ')
  visit(expression)
end