class Unparser::Emitter::FlowModifier
Emitter
control flow modifiers
Constants
- MAP
Public Instance Methods
emit_heredoc_reminders()
click to toggle source
# File lib/unparser/emitter/flow_modifier.rb, line 17 def emit_heredoc_reminders children.each do |node| emitter(node).emit_heredoc_reminders end end
Private Instance Methods
dispatch()
click to toggle source
# File lib/unparser/emitter/flow_modifier.rb, line 25 def dispatch write(MAP.fetch(node.type)) if children.one? && n_if?(children.first) ws emitter(children.first).emit_ternary else emit_arguments unless children.empty? end end
emit_arguments()
click to toggle source
# File lib/unparser/emitter/flow_modifier.rb, line 36 def emit_arguments ws delimited(children) end