1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/examples/example_basic.rb

18 lines
298 B
Ruby
Raw Normal View History

direc = File.dirname(__FILE__)
require 'rubygems'
require "#{direc}/../lib/pry"
# 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.
pry