adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://libera.irclog.whitequark.org/ruby/
jpn has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
perrierjouet has quit [Quit: WeeChat 3.7.1]
John_Ivan has joined #ruby
shokohsc3 has joined #ruby
shokohsc has quit [Ping timeout: 252 seconds]
shokohsc3 is now known as shokohsc
gonix has joined #ruby
axisys has joined #ruby
gonix has quit [Ping timeout: 252 seconds]
perrierjouet has joined #ruby
gonix has joined #ruby
cartdrige has joined #ruby
entropie has quit [Ping timeout: 246 seconds]
entropie has joined #ruby
Laplace has joined #ruby
entropie has quit [Client Quit]
entropie has joined #ruby
Na_Klar has left #ruby [https://quassel-irc.org - Komfortabler Chat. Überall. ]
gonix has quit [Remote host closed the connection]
jpn has joined #ruby
<Laplace> Hey folks -- Any way I can split up a block?
<Laplace> I asked about this yesterday and was suggested Arbre lib but I did not see something meaningful there
jpn has quit [Ping timeout: 252 seconds]
TomyLobo has quit [Read error: Connection reset by peer]
<cartdrige> split a block? a block of what?
perrierjouet has quit [Quit: WeeChat 3.7.1]
<Laplace> Sec, prepping an example
<Laplace> cartdrige: Here is an example https://gist.github.com/bhargavrpatel/6fa7041a7aacb3f115beccb06e9d028f basically I am accepting a block that can be used by the "self" or an instance of the class. What I have in the example "works", but the issue is that a block could have methods of self and attribute and it can only do one or the other.
<Laplace> That is why I was asking if I can split up the block some how so it runs each method calls on self and the underlaing attribute/instance of class
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 272 seconds]
Sankalp- is now known as Sankalp
<cartdrige> No idea.
<Laplace> Any suggestions on alternative patterns I can use here? perhaps I am just using the wrong approach
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
<adam12> Laplace: It's not possible to split a block. What I would do is maybe have a class that acts as a proxy, with the methods you want, and then constructs the new classes you want.
<adam12> I'm crashing because it's late here, but maybe that can help you get unstuck.
<Laplace> adam12: Wow that's funny. I was literally thinking the same thing and was just about to google how to do that :)
<Laplace> I am assuming I just have to do a wrapper + method missing + respond to
<adam12> Laplace: I'm out. Goodl uck.
<Laplace> Have a great night
<adam12> Yeah, that seems reasonable.
perrierjouet has joined #ruby
shokohsc7 has joined #ruby
shokohsc has quit [Ping timeout: 252 seconds]
shokohsc7 is now known as shokohsc
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Ping timeout: 248 seconds]
cartdrige has quit [Ping timeout: 246 seconds]
gonix has joined #ruby
grokify has joined #ruby
jpn has joined #ruby
gonix has quit [Ping timeout: 248 seconds]
grokify has quit [Ping timeout: 255 seconds]
jpn has quit [Ping timeout: 248 seconds]
entropie has quit [Ping timeout: 252 seconds]
entropy has joined #ruby
entropy is now known as entropie
gonix has joined #ruby
gonix has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
grokify has joined #ruby
grokify has quit [Ping timeout: 246 seconds]
shokohsc1 has joined #ruby
shokohsc has quit [Ping timeout: 252 seconds]
shokohsc1 is now known as shokohsc
desnudopenguino has joined #ruby
gschanuel3 has joined #ruby
gschanuel has quit [Ping timeout: 272 seconds]
gschanuel3 is now known as gschanuel
reset has quit [Quit: reset]
<leftylink> hm.
<leftylink> pandabot: rb using(Module.new { refine(Integer) { def **; 7 end }}); 5.***5
<pandabot> stderr: playpen: timeout triggered! - exit 1 - https://carc.in/#/r/dz6b
<pandabot> Lucky☆Star - Hiiragi Tsukasa - Ne Tou ge de Reset! by JaimeMello @ 2008-06-16T11:52:20Z (5249d17h ago) 4m34s: https://youtu.be/yrD599PgGmg
<leftylink> pandabot: rb using(Module.new { refine(Integer) { def **; 7 end }}); 5.***5
gonix has joined #ruby
<leftylink> pandabot: rb using(Module.new { refine(Integer) { def ***_; 19 end }}); 5.***7
<pandabot> 133 - https://carc.in/#/r/dz6d
<leftylink> pandabot: rb using(Module.new { refine(Integer) { def ***_; 19 end }}); 5.****7
<leftylink> it's just such a shame we can't go further though
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
soknte5 has joined #ruby
soknte5 has quit [Client Quit]
gonix has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
grokify has quit [Remote host closed the connection]
D_A_N has quit [Quit: leaving]
grokify has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
entropie has quit [Ping timeout: 252 seconds]
entropie has joined #ruby
ur5us has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
grokify has quit [Remote host closed the connection]
otisolsen70 has joined #ruby
otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #ruby
grokify has joined #ruby
gschanuel7 has joined #ruby
gschanuel has quit [Ping timeout: 252 seconds]
gschanuel7 is now known as gschanuel
teclator has joined #ruby
walez has joined #ruby
grokify has quit [Remote host closed the connection]
ur5us has joined #ruby
<leftylink> pandabot: rb %%%%%%%%%%%%%%%%%%%%%%%
grokify has joined #ruby
kerunaru has joined #ruby
kerunaru has quit [Client Quit]
walez has quit [Quit: Leaving]
grokify has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
desnudopenguino has quit [Ping timeout: 255 seconds]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
gonix has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
grokify has quit [Ping timeout: 276 seconds]
jvalleroy has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
walez has joined #ruby
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
grokify has joined #ruby
jpn has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
splud has quit [Quit: Leaving]
kerunaru has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
splud has joined #ruby
dionysus69 has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
kerunaru has quit [Ping timeout: 248 seconds]
teclator has joined #ruby
kerunaru has joined #ruby
ccooke has quit [Quit: WeeChat 1.9.1]
ccooke has joined #ruby
grokify has quit [Remote host closed the connection]
jpn has joined #ruby
grokify has joined #ruby
or2b has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
gonix has quit [Ping timeout: 246 seconds]
walez has quit [Read error: Connection reset by peer]
walez___ has joined #ruby
jpn has quit [Quit: Lost terminal]
gr33n7007h has quit [Quit: WeeChat 3.7.1]
kerunaru has quit [Ping timeout: 248 seconds]
lucerne has joined #ruby
gr33n7007h has joined #ruby
walez___ has quit [Ping timeout: 252 seconds]
kerunaru has joined #ruby
hellstabber has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
Davidian has quit [Ping timeout: 246 seconds]
Davidian has joined #ruby
Petruchio has quit [Quit: Konversation terminated!]
gonix has joined #ruby
kerunaru has quit [Ping timeout: 246 seconds]
kerunaru has joined #ruby
jpn has joined #ruby
Vonter has quit [Ping timeout: 250 seconds]
jpn has quit [Quit: Lost terminal]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
Vonter has joined #ruby
markong has joined #ruby
grokify has quit [Ping timeout: 255 seconds]
arahael has quit [Ping timeout: 248 seconds]
walez___ has joined #ruby
arahael has joined #ruby
D_A_N has joined #ruby
yxhuvud has quit [Read error: Connection reset by peer]
walez___ has quit [Quit: Leaving]
yxhuvud has joined #ruby
Vonter has quit [Ping timeout: 248 seconds]
Vonter has joined #ruby
hellstabber has quit [Quit: Connection closed for inactivity]
gonix has quit [Ping timeout: 252 seconds]
John_Ivan has quit [Read error: Connection reset by peer]
John_Ivan has joined #ruby
desnudopenguino has joined #ruby
rhe has joined #ruby
kerunaru has quit [Ping timeout: 252 seconds]
kerunaru has joined #ruby
kerunaru has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
Petruchio has joined #ruby
kerunaru has joined #ruby
grokify has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
<Laplace> adam12: Not sure if you are online, but just wanted to report back that the proxy approach worked wonders. Thank you
<adam12> Laplace: Nice :)
arahael has quit [Ping timeout: 252 seconds]
D_A_N has quit [Ping timeout: 252 seconds]
D_A_N has joined #ruby
arahael has joined #ruby
reset has joined #ruby
or2b has quit [Quit: Client closed]
jpn has quit [Ping timeout: 252 seconds]
John_Ivan_ has joined #ruby
John_Ivan has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
cartdrige has joined #ruby
grokify has quit [Remote host closed the connection]
darkstardevx has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 255 seconds]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
John_Ivan_ has quit [Read error: Connection reset by peer]
John_Ivan__ has joined #ruby
darkstardevx has joined #ruby
darkstardevx has quit [Remote host closed the connection]
darkstardevx has joined #ruby
gschanuel3 has joined #ruby
crax23 has joined #ruby
gschanuel has quit [Ping timeout: 255 seconds]
gschanuel3 is now known as gschanuel
cartdrige has quit [Ping timeout: 268 seconds]
or2b has joined #ruby
kerunaru has quit [Quit: leaving]
justHaunted is now known as DeliriumTremens_
DeliriumTremens_ is now known as justache
crax23 has quit [Read error: Connection reset by peer]
r3m has quit [Quit: WeeChat 3.8-dev]
D_A_N has quit [Ping timeout: 252 seconds]
D_A_N has joined #ruby
r3m has joined #ruby
arahael has quit [Ping timeout: 252 seconds]
or2b has quit [Quit: Client closed]
arahael has joined #ruby
gonix has joined #ruby
gonix has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
John_Ivan__ has quit [Read error: Connection reset by peer]
John_Ivan_ has joined #ruby
gonix has joined #ruby
darkstardevx has quit [Read error: Connection reset by peer]
darkstardevx has joined #ruby
gschanuel0 has joined #ruby
gschanuel has quit [Read error: Connection reset by peer]
gschanuel0 is now known as gschanuel
or2b has joined #ruby
or2b has quit [Client Quit]
gonix has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
goldfish has joined #ruby
Inoperable has quit [Quit: All your buffer are belong to us!]
Inoperable has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
jpn has quit [Ping timeout: 255 seconds]
howdoi has joined #ruby
markong has quit [Ping timeout: 248 seconds]
D_A_N has quit [Ping timeout: 252 seconds]
D_A_N has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
John_Ivan__ has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
John_Ivan_ has quit [Ping timeout: 252 seconds]
darkstardevx has quit [Read error: Connection reset by peer]
darkstardevx has joined #ruby
gschanuel2 has joined #ruby
gschanuel has quit [Read error: Connection reset by peer]
gschanuel2 is now known as gschanuel
dionysus69 has joined #ruby
walez has joined #ruby
jpn has joined #ruby
ur5us has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
_ht has joined #ruby
jpn has joined #ruby
_ht has quit [Remote host closed the connection]
Laplace has quit [Quit: Connection closed for inactivity]
otisolsen70 has quit [Quit: Leaving]
jpn has quit [Ping timeout: 248 seconds]
darkstarx has joined #ruby
darkstardevx has quit [Ping timeout: 252 seconds]
ur5us has quit [Remote host closed the connection]
madprops has quit [Quit: biourvgrt445]
madprops has joined #ruby
madprops has quit [Changing host]
madprops has joined #ruby
pandabot_ has joined #ruby
ur5us has joined #ruby
gschanuel0 has joined #ruby
gschanuel has quit [Read error: Connection reset by peer]
gschanuel0 is now known as gschanuel
jpn has joined #ruby
pandabot has quit [Remote host closed the connection]
jpn has quit [Ping timeout: 252 seconds]
slothby has quit [Ping timeout: 264 seconds]
slothby has joined #ruby
some14u has joined #ruby
lagash has quit [Quit: ZNC - https://znc.in]
lagash has joined #ruby
jpn has joined #ruby
pandabot_ is now known as pandabot
desnudopenguino has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
eddof13 has joined #ruby
walez has quit [Ping timeout: 246 seconds]
jpn has quit [Ping timeout: 252 seconds]
gonix has joined #ruby
lestopher has joined #ruby
lestopher has left #ruby [WeeChat 3.6]
jpn has joined #ruby
oxfuxxx has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
desnudopenguino has joined #ruby
markong has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn has joined #ruby
gonix has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 252 seconds]
gschanuel9 has joined #ruby
gschanuel has quit [Read error: Connection reset by peer]
gschanuel9 is now known as gschanuel
_aeris_ has joined #ruby
aeris has quit [Ping timeout: 258 seconds]
_aeris_ is now known as aeris
eddof13 has joined #ruby
jpn has joined #ruby