Sha256: 000b049544d3bd3b87e48b8129a35584c5efb019cc5ff0df7b304b528da16d53
Contents?: true
Size: 360 Bytes
Versions: 2
Compression:
Stored size: 360 Bytes
Contents
module CrossStub module Arguments #:nodoc: module Proc class << self RUBY_2_RUBY = Ruby2Ruby.new def parse(&block) methods = {} block.to_sexp.each_of_type(:defn) do |_sexp| methods[_sexp.to_a[1]] = RUBY_2_RUBY.process(_sexp) end methods end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cross-stub-0.2.2 | lib/cross-stub/arguments/proc.rb |
cross-stub-0.2.1 | lib/cross-stub/arguments/proc.rb |