Sha256: 670a21cf8a6afb71beaf8d11fb1bd3cd41547af0948ac4b5ee8ac71faadc60f0
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
module RipperRubyParser module SexpHandlers module Hashes def process_hash exp _, elems = exp.shift 2 s(:hash, *process(elems)) end def process_assoclist_from_args exp _, elems = exp.shift 2 result = s() elems.each {|sub_exp| process(sub_exp).each {|elm| result << elm } } result end def process_assoc_new exp _, left, right = exp.shift 3 s(process(left), process(right)) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ripper_ruby_parser-0.0.2 | lib/ripper_ruby_parser/sexp_handlers/hashes.rb |
ripper_ruby_parser-0.0.1 | lib/ripper_ruby_parser/sexp_handlers/hashes.rb |