Sha256: 2c7e81648d94282df149ca38c4a9adfb6a25762693ed052fbddab94ad436bfe2
Contents?: true
Size: 707 Bytes
Versions: 24
Compression:
Stored size: 707 Bytes
Contents
# frozen_string_literal: true module Unparser class Emitter # Base class for special match node emitters class Match < self # Emitter for match with local variable assignment class Lvasgn < self handle :match_with_lvasgn children :regexp, :lvasgn private def dispatch visit(regexp) write(' =~ ') visit(lvasgn) end end # Lvasgn # Emitter for match current line class CurrentLine < self handle :match_current_line children :regexp private def dispatch visit(regexp) end end # CurrentLine end # Match end # Emitter end # Unparser
Version data entries
24 entries across 24 versions & 2 rubygems