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

use ruby syntax highlighting in README

This commit is contained in:
Geoffrey Litt 2015-10-13 22:26:37 -04:00
parent 3c138cbf94
commit e5a02b6a9c

View file

@ -137,20 +137,22 @@ implementing developer consoles and applying hot patches.
code:
# test.rb
require 'pry'
```ruby
# test.rb
require 'pry'
class A
def hello() puts "hello world!" end
end
class A
def hello() puts "hello world!" end
end
a = A.new
a = A.new
# start a REPL session
binding.pry
# start a REPL session
binding.pry
# program resumes here (after pry session)
puts "program resumes here."
# program resumes here (after pry session)
puts "program resumes here."
```
Pry session: