Sha256: d8ecb2e20a26a782111ea56cc3d5a26a0b70b4c1193108f3433811c22a4e2cb3
Contents?: true
Size: 761 Bytes
Versions: 6
Compression:
Stored size: 761 Bytes
Contents
# encoding: utf-8 module Unparser class Emitter # Block emitter class Block < self include Terminated handle :block children :send, :arguments, :body private # Perform dispatch # # @return [undefined] # # @api private # def dispatch visit(send) write(WS, K_DO) comments.consume(node, :begin) emit_block_arguments emit_body k_end end # Emit arguments # # @return [undefined] # # @api private # def emit_block_arguments return if arguments.children.empty? ws visit_parentheses(arguments, T_PIPE, T_PIPE) end end # Block end # Emitter end # Unparser
Version data entries
6 entries across 6 versions & 1 rubygems