class Unparser::Emitter::MatchRest
Emiter for match rest nodes
Public Instance Methods
emit_array_pattern()
click to toggle source
# File lib/unparser/emitter/match_rest.rb, line 9 def emit_array_pattern write('*') emit_match_var end
emit_hash_pattern()
click to toggle source
# File lib/unparser/emitter/match_rest.rb, line 14 def emit_hash_pattern write('**') emit_match_var end
Private Instance Methods
emit_match_var()
click to toggle source
# File lib/unparser/emitter/match_rest.rb, line 21 def emit_match_var visit(match_var) if match_var end