edited with... https://hackmd.io/PdE46uT6TQO-WD6CcX1fXA?
gem install pry
require 'pry'
def crypticMethod(env)
# some code
binding.pry
puts "making sure binding.pry is not the last execution"
# Note that binding.pry inserted binding.pry should not be the last line of a method.
end
require 'json'
JSON.method(:parse).source_location
=> ["/Users/chanst/.rvm/rubies/jruby-9.2.9.0/lib/ruby/stdlib/json/common.rb", 155]
String.new.methods
Object.new.instance_variables
=> # [:@water]
Object.new.instance_variables.get(:@water)
Object.new.instance_variables.set(:@water, "Poland Springs")