proc_source

get the sourcecode for a Proc object

Installation

install it yourself as:

$ gem install proc_source

Usage

require "proc_source"

proc1 = Proc.new do |i|
  puts i
end

puts proc1.proc_source
        Proc.new do |i|
  puts i
end

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the ProcSource project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.