<ruby[bot]>
irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
<havenwood>
?pry
<ruby[bot]>
Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
<johnflux_>
havenwood: I think in this particular case the binding.irb isn't useful because I think irb is overriding it?
<johnflux_>
havenwood: I did a puts defined?(_) and it has just printed out 'method'
<havenwood>
johnflux_: In IRB that'd be: "local-variable"
<johnflux_>
ah, I need the .owner
<havenwood>
johnflux_: So it's a method.
<johnflux_>
yeah the irb local-variable is overriding it
<havenwood>
johnflux_: You can also check: method(:_).source_location
<johnflux_>
rspec/expectations/syntax.rb like 72
<johnflux_>
nice
<johnflux_>
and.... I have no idea what this code means haha
<johnflux_>
creates an ExpectationTarget for it
<johnflux_>
okay it's a shorthand for "expect" I think
<johnflux_>
havenwood: thank you so much!
<havenwood>
johnflux_: any time!
wymillerlinux has quit [Ping timeout: 256 seconds]
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
drincruz has joined #ruby
electrostat has quit [Client Quit]
drincruz has quit [Ping timeout: 258 seconds]
alexherbo2 has joined #ruby
donofrio has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has quit [Client Quit]
electrostat has joined #ruby
cliluw has quit [Ping timeout: 265 seconds]
jetchisel has joined #ruby
roadie has quit [Ping timeout: 272 seconds]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
DTZUZO_ has quit [Ping timeout: 240 seconds]
DTZUZO_ has joined #ruby
Vashy has quit [Ping timeout: 252 seconds]
DTZUZO_ has quit [Quit: WeeChat 2.6]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
Vashy has joined #ruby
mibr has joined #ruby
roadie has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
conta has joined #ruby
roadie has quit [Ping timeout: 272 seconds]
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
Vashy has quit [Ping timeout: 252 seconds]
hiroaki_ has quit [Ping timeout: 265 seconds]
gato has joined #ruby
NODE has quit [Ping timeout: 240 seconds]
Benett has quit [Ping timeout: 240 seconds]
Benett has joined #ruby
NODE has joined #ruby
darkstardevx has joined #ruby
conta has quit [Remote host closed the connection]
roadie has joined #ruby
_aeris_ has joined #ruby
vondruch has joined #ruby
kristian_on_linu has joined #ruby
drincruz has joined #ruby
hiroaki has joined #ruby
roadie has quit [Ping timeout: 244 seconds]
drincruz has quit [Ping timeout: 264 seconds]
yxhuvud has quit [Remote host closed the connection]
gato has quit [Ping timeout: 260 seconds]
TCZ has joined #ruby
roadie has joined #ruby
darkstardevx has quit [Ping timeout: 260 seconds]
roadie has quit [Ping timeout: 260 seconds]
darkstardevx has joined #ruby
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
jennis has joined #ruby
roadie has joined #ruby
cnsvc_ has joined #ruby
ur5us has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
chalkmonster has joined #ruby
imode has quit [Ping timeout: 265 seconds]
Technodrome has joined #ruby
TCZ has quit [Quit: Leaving]
wogi has joined #ruby
Vashy has joined #ruby
cliluw has joined #ruby
johnflux_ has quit [Ping timeout: 256 seconds]
gato has joined #ruby
Vashy has quit [Ping timeout: 252 seconds]
TCZ has joined #ruby
wogi has quit [Read error: Connection reset by peer]
cnsvc_ has quit [Ping timeout: 240 seconds]
cliluw has quit [Ping timeout: 260 seconds]
akem has quit [Quit: Leaving]
ur5us has quit [Quit: Leaving]
ur5us has joined #ruby
darkstardevx has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 260 seconds]
sorah has joined #ruby
TCZ has quit [Quit: Leaving]
jinmiaoluo has joined #ruby
Vashy has joined #ruby
yxhuvud has joined #ruby
alexherbo29 has joined #ruby
alexherbo2 has quit [Ping timeout: 260 seconds]
alexherbo29 is now known as alexherbo2
banisterfiend has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]