class Unparser::Emitter::Procarg
Progarg emitter
Constants
- PARENS
Private Instance Methods
dispatch()
click to toggle source
# File lib/unparser/emitter/argument.rb, line 103 def dispatch if needs_parens? parentheses do delimited(children) end else delimited(children) end end
needs_parens?()
click to toggle source
# File lib/unparser/emitter/argument.rb, line 113 def needs_parens? children.length > 1 || children.any? do |node| PARENS.include?(node.type) end end