Sha256: 14c3de353d36984133399b14488b04ac54c4accb84a36ac2c0a1d0adfcf5ce80

Contents?: true

Size: 197 Bytes

Versions: 89

Compression:

Stored size: 197 Bytes

Contents

require 'ruby2ruby' 

class Proc
  def to_ruby(opts={})
    Ruby2Ruby.new.process(self.to_sexp).gsub(/proc \{/, "do \n#{opts.map {|k,v| "#{k} \"#{v}\""}.join("\n")}\n").sub(/\}/, "\nend")
  end
end

Version data entries

89 entries across 89 versions & 3 rubygems

Version Path
auser-poolparty-0.2.15 lib/poolparty/core/proc.rb
auser-poolparty-0.2.16 lib/poolparty/core/proc.rb
auser-poolparty-0.2.20 lib/poolparty/core/proc.rb
auser-poolparty-0.2.21 lib/poolparty/core/proc.rb
auser-poolparty-0.2.22 lib/poolparty/core/proc.rb
auser-poolparty-0.2.23 lib/poolparty/core/proc.rb
auser-poolparty-0.2.24 lib/poolparty/core/proc.rb
auser-poolparty-0.2.25 lib/poolparty/core/proc.rb
auser-poolparty-0.2.26 lib/poolparty/core/proc.rb
auser-poolparty-0.2.3 lib/poolparty/core/proc.rb
auser-poolparty-0.2.35 lib/poolparty/core/proc.rb
auser-poolparty-0.2.36 lib/poolparty/core/proc.rb
auser-poolparty-0.2.37 lib/poolparty/core/proc.rb
auser-poolparty-0.2.38 lib/poolparty/core/proc.rb
auser-poolparty-0.2.39 lib/poolparty/core/proc.rb
auser-poolparty-0.2.4 lib/poolparty/core/proc.rb
auser-poolparty-0.2.40 lib/poolparty/core/proc.rb
auser-poolparty-0.2.41 lib/poolparty/core/proc.rb
auser-poolparty-0.2.42 lib/poolparty/core/proc.rb
auser-poolparty-0.2.44 lib/poolparty/core/proc.rb