Sha256: 5c955e0b89443d900e21a7a482db67dde14d42183ea3211ef220fee419899997
Contents?: true
Size: 518 Bytes
Versions: 4
Compression:
Stored size: 518 Bytes
Contents
module Unparser class Emitter # Base class for binary emitters class Binary < self include Unterminated children :left, :right MAP = { or: T_OR, and: T_AND }.freeze handle(*MAP.keys) private # Perform dispatch # # @return [undefined] # # @api private # def dispatch visit(left) write(WS, MAP.fetch(node.type), WS) visit(right) end end # Binary end # Emitter end # Unparser
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
unparser-0.2.8 | lib/unparser/emitter/binary.rb |
unparser-0.2.7 | lib/unparser/emitter/binary.rb |
unparser-0.2.6 | lib/unparser/emitter/binary.rb |
unparser-0.2.5 | lib/unparser/emitter/binary.rb |