2011-06-02 15:22:59 +00:00
|
|
|
require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
|
2011-02-05 03:14:28 +00:00
|
|
|
|
|
|
|
# define a local.
|
|
|
|
a = "a local variable"
|
|
|
|
|
|
|
|
# defing a top-level method.
|
|
|
|
def hello
|
|
|
|
puts "hello world!"
|
|
|
|
end
|
|
|
|
|
|
|
|
# Start pry session at top-level.
|
|
|
|
# The local variable `a` and the `hello` method will
|
|
|
|
# be accessible.
|
2011-06-02 15:22:59 +00:00
|
|
|
puts __LINE__
|
2011-03-26 09:08:12 +00:00
|
|
|
binding.pry
|