[10] pry(FileUtils):1> cd []
[11] pry(#):2> ls
Enumerable#methods: [...]
Array#methods: [...]
self.methods: __pry__
Slide 11
Slide 11 text
[3] pry(main)> show-doc String#gsub
From: string.c (C Method):
Owner: String
Visibility: public
Signature: gsub(*arg1)
Number of lines: 34
!
Returns a copy of str with the all occurrences of
pattern substituted for the second argument. [...]
Slide 12
Slide 12 text
[10] pry(main)> show-source String#gsub
From: string.c (C Method):
Number of lines: 5
!
static VALUE
rb_str_gsub(int argc, VALUE *argv, VALUE str)
{
return str_gsub(argc, argv, str, 0);
}
Slide 13
Slide 13 text
[5] pry(main)> raise ArgumentError, "Date expected,
received Date"
ArgumentError: Date expected, received Date
from (pry):1:in `__pry__'
!
!
!
!
!
!
!
Slide 14
Slide 14 text
[5] pry(main)> raise ArgumentError, "Date expected,
received Date"
ArgumentError: Date expected, received Date
from (pry):1:in `__pry__'
[6] pry(main)> wtf?
Exception: ArgumentError: Date expected, received Date
--
0: (pry):1:in `__pry__'
1: /Users/ksol/.rbenv/versions/2.0.0-p247/lib/ruby/gems/
2.0.0/gems/pry-0.9.12.2/lib/pry/pry_instance.rb:328:in
`eval’
…
Slide 15
Slide 15 text
See/replay history inside a session
!
Special locals (last file opened, etc)
!
Open in $EDITOR
!
…