havenwood changed the topic of #ruby to: Ruby 3.3.1, 3.2.4, 3.4.0-preview1 https://www.ruby-lang.org | Logs https://libera.irclog.whitequark.org/ruby
Guest57 has joined #ruby
Guest57 has quit [Client Quit]
jaredce has joined #ruby
jaredce has quit [Ping timeout: 260 seconds]
Obsdark has quit [Ping timeout: 264 seconds]
shiboka has quit [Remote host closed the connection]
brokkoli_origina has joined #ruby
brokkoli_origin has quit [Ping timeout: 264 seconds]
xdminsy has quit [Quit: Konversation terminated!]
xdminsy has joined #ruby
konsolebox has joined #ruby
konsolebox_ has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
teardown has joined #ruby
xdminsy has quit [Read error: Connection reset by peer]
<teardown> i'm using caller_locations(1,1)[0].label.to_sym to get the name of the method that called my method. is there a way to get the name of the method up one level higher, ie: the name of the method that called the method that called the current method?
<teardown> i need the name of grandpa method
xdminsy has joined #ruby
ih8u1 has joined #ruby
ih8u has quit [Ping timeout: 252 seconds]
ih8u1 is now known as ih8u
Fridtjof has quit [Quit: ZNC - http://znc.in]
Fridtjof has joined #ruby
legahc has quit [Quit: %bye%]
cnsvc has quit [Quit: %bye%]
legahc has joined #ruby
cnsvc has joined #ruby
wyclif has quit [Ping timeout: 264 seconds]
wyclif has joined #ruby
cappy has joined #ruby
reset has quit [Quit: reset]
grenierm has joined #ruby
brokkoli_origina has quit [Ping timeout: 260 seconds]
tarel2 has quit [Quit: Client closed]
<wnd> I must have missed something but caller_locations(2,1), perhaps?
cappy has quit [Quit: Leaving]
Inline has quit [Ping timeout: 240 seconds]
<mooff> try caller_locations[1].label
<mooff> >> caller_locations.map(&:label)
<ruby[bot]> mooff: # => [] (https://carc.in/#/r/guva)
<mooff> heh, funky result from ruby[bot] :)
<mooff> == caller_locations.map(&:label)
<ruby-eval> => ["eval", "<main>"]
<mooff> == (def grandparent() = parent; def parent() = child; def child() = caller_locations[1].label); grandparent()
<ruby-eval> => "grandparent"
dviola has joined #ruby
Paris has joined #ruby
Paris has joined #ruby
Paris has quit [Changing host]
wyclif has quit [Quit: leaving]
polishdub has quit [Ping timeout: 256 seconds]
polishdub has joined #ruby
tirnanog has joined #ruby
yeahitsme has joined #ruby
jaredce has joined #ruby
Inline has joined #ruby
yeahitsme has quit [Quit: Leaving]
gaussianblue has joined #ruby
Paris has quit [Ping timeout: 240 seconds]
Paris has joined #ruby
Paris has quit [Quit: quit]
cappy has joined #ruby
grenierm has quit [Ping timeout: 250 seconds]
jhass has quit [Remote host closed the connection]
jhass has joined #ruby
brokkoli_origin has joined #ruby
Al2O3 has quit [Ping timeout: 246 seconds]
trnzecs has joined #ruby
trnzecs has quit [Remote host closed the connection]
hellstabber_ has joined #ruby
hellstabber_ has quit [Client Quit]
jbg_ is now known as jbg
jbg has quit []
jbg has joined #ruby
whysthatso125070 has quit [Quit: The Lounge - https://thelounge.chat]
whysthatso125070 has joined #ruby
jaredce has quit [Ping timeout: 260 seconds]