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:
parent
3c138cbf94
commit
e5a02b6a9c
1 changed files with 12 additions and 10 deletions
22
README.md
22
README.md
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue