Sha256: a23bf25ad2f7e02b0249553eea30a0294e6e023767a1c0c95a2c9838304f18b8
Contents?: true
Size: 922 Bytes
Versions: 21
Compression:
Stored size: 922 Bytes
Contents
module Unparser class Emitter # Base class for special match node emitters class Match < self OPERATOR = '=~'.freeze # Emitter for match with local variable assignment class Lvasgn < self handle :match_with_lvasgn children :regexp, :lvasgn private # Perform dispatch # # @return [undefined] # # @api private # def dispatch visit(regexp) write(WS, OPERATOR, WS) visit(lvasgn) end end # Lvasgn # Emitter for match current line class CurrentLine < self handle :match_current_line children :regexp # Perform dispatch # # @return [undefined] # # @api private # def dispatch visit(regexp) end end # CurrentLine end # Match end # Emitter end # Unparser
Version data entries
21 entries across 21 versions & 1 rubygems