Sha256: f21ea89b74e50a7bda19bf84ae7c7a5c70c0ee635179b64801a5c5de29fe9ace
Contents?: true
Size: 678 Bytes
Versions: 2
Compression:
Stored size: 678 Bytes
Contents
module Unparser class Emitter # Block emitter class Block < self handle :block children :send, :arguments, :body private # Perform dispatch # # @return [undefined] # # @api private # def dispatch visit(send) write(WS, K_DO) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unparser-0.1.2 | lib/unparser/emitter/block.rb |
unparser-0.1.1 | lib/unparser/emitter/block.rb |