class Unparser::Emitter::Primitive::Complex
Emitter
for complex literals
Constants
- MAP
- RATIONAL_FORMAT
Private Instance Methods
dispatch()
click to toggle source
# File lib/unparser/emitter/primitive.rb, line 39 def dispatch emit_imaginary write(RATIONAL_FORMAT) end
emit_imaginary()
click to toggle source
# File lib/unparser/emitter/primitive.rb, line 44 def emit_imaginary visit(imaginary_node) end
imaginary_node()
click to toggle source
# File lib/unparser/emitter/primitive.rb, line 48 def imaginary_node imaginary = value.imaginary s(MAP.fetch(imaginary.class), imaginary) end