havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview3: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
gix- has quit [Ping timeout: 265 seconds]
sameerynho has quit [Ping timeout: 250 seconds]
candlebag has quit [Remote host closed the connection]
candlebag has joined #ruby
hutch1 has joined #ruby
candlebag has quit [Remote host closed the connection]
candlebag has joined #ruby
candlebag has quit [Remote host closed the connection]
candlebag has joined #ruby
candlebag_ has joined #ruby
candlebag has quit [Ping timeout: 240 seconds]
cthu| has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
cthulchu has quit [Ping timeout: 250 seconds]
candlebag__ has joined #ruby
candlebag_ has quit [Ping timeout: 240 seconds]
xco has joined #ruby
xco has quit [Client Quit]
candlebag_ has joined #ruby
candlebag__ has quit [Ping timeout: 276 seconds]
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
JohanP has joined #ruby
candlebag__ has joined #ruby
JohanP has quit [Ping timeout: 268 seconds]
candlebag__ has quit [Remote host closed the connection]
candlebag_ has quit [Ping timeout: 268 seconds]
candlebag__ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
itarato has quit [Quit: Konversation terminated!]
xco has joined #ruby
xco has quit [Client Quit]
Technodrome has joined #ruby
candlebag_ has joined #ruby
candlebag__ has quit [Ping timeout: 245 seconds]
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 265 seconds]
bluvinyl2 has quit [Ping timeout: 250 seconds]
bluvinyl has quit [Ping timeout: 250 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
Creatornator has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
AJA4350 has quit [Quit: AJA4350]
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
qeopo has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
JohanP has joined #ruby
candlebag_ has quit [Remote host closed the connection]
chalkmonster has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
candlebag_ has joined #ruby
brool has quit [Ping timeout: 250 seconds]
JohanP has quit [Ping timeout: 265 seconds]
akemhp has joined #ruby
candlebag_ has quit [Remote host closed the connection]
JohanP has joined #ruby
candlebag_ has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
xco has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
candlebag_ has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
candlebag_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
chalkmonster has quit [Ping timeout: 276 seconds]
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
MrCrackPot has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
MrCrackPot has quit [Read error: Connection reset by peer]
qeopo has quit [Remote host closed the connection]
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
MrCrackPot has joined #ruby
MrCrackPot has quit [Read error: Connection reset by peer]
antholog has joined #ruby
MrCrackPot has joined #ruby
NODE has quit [Quit: changing servers]
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
NODE has joined #ruby
qeopo has joined #ruby
NODE has quit [Client Quit]
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
jenrzzz_ has joined #ruby
NODE has joined #ruby
orbyt_ has joined #ruby
NODE has quit [Client Quit]
jenrzzz has quit [Ping timeout: 250 seconds]
candlebag_ has quit [Remote host closed the connection]
NODE has joined #ruby
candlebag_ has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
candlebag_ has quit [Remote host closed the connection]
sphex has quit [Ping timeout: 252 seconds]
candlebag_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sphex has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 250 seconds]
candlebag_ has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 2.6]
candlebag_ has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
MrCrackPot has quit [Remote host closed the connection]
tsrt^ has quit []
MrCrackPot has joined #ruby
MrCrackPot has quit [Remote host closed the connection]
MrCrackPot has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
JohanP has quit [Ping timeout: 252 seconds]
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
sergioro has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
xall has joined #ruby
<xall> I'm messing around trying to convert a problem I solved in JS to ruby and I'm getting no method errors for all the lambdas I defined. What's wrong? https://dpaste.org/LASS
Fridtjof has quit [Ping timeout: 246 seconds]
qeopo has quit [Remote host closed the connection]
<xall> seems like something with lambda scope - i'm looking
<xall> this was premature. ignore it for now
Inside has quit [Disconnected by services]
<xall> seems like the issue i'm having is referencing a lambda var from inside another lambda var's block
jud has quit [Quit: Leaving]
MrCrackPot has quit [Remote host closed the connection]
MrCrackPot has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MrCrackPot has quit [Remote host closed the connection]
MrCrackPot has joined #ruby
<xall> doh, the problem was just proc calling syntax: parens instead of bracket
xall has quit [Quit: xall]
Creatornator has joined #ruby
tpanarch1st has quit [Quit: Thanks for your help, nice to see you, take care.]
haxx0r has joined #ruby
MrCrackPot has quit [Read error: Connection reset by peer]
MrCrackPot has joined #ruby
donofrio__ has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
bvdw has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
Inline has quit [Quit: Leaving]
MrCrackPot has quit [Ping timeout: 265 seconds]
MrCrackPot has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
nixy37 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37 has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
candlebag_ has quit [Remote host closed the connection]
candlebag_ has joined #ruby
candlebag_ has quit [Remote host closed the connection]
MrCrackPot has quit [Read error: Connection reset by peer]
skx86 has quit [Quit: Connection closed for inactivity]
hutch1 has quit [Ping timeout: 240 seconds]
dasher00 has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
arup_r has joined #ruby
fphilipe_ has quit [Ping timeout: 268 seconds]
chalkmonster has joined #ruby
Furai has quit [Remote host closed the connection]
Furai has joined #ruby
haxx0r has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
arup_r has quit [Client Quit]
DTZUZO has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
fphilipe_ has quit [Quit: WeeChat 2.4]
DTZUZO has joined #ruby
fphilipe has joined #ruby
fphilipe has quit [Quit: WeeChat 2.4]
fphilipe has joined #ruby
MrCrackPot has joined #ruby
fphilipe has quit [Client Quit]
MrCrackPot has quit [Read error: Connection reset by peer]
MrCrackPot has joined #ruby
fphilipe has joined #ruby
_phaul has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
MrCrackPot has quit [Ping timeout: 250 seconds]
_phaul has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
_phaul has joined #ruby
prestorium has joined #ruby
ur5us_ has joined #ruby
dellavg has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_phaul has quit [Ping timeout: 268 seconds]
dellavg has quit [Client Quit]
ur5us has quit [Ping timeout: 246 seconds]
_phaul has joined #ruby
ur5us__ has joined #ruby
paleobao has joined #ruby
ur5us_ has quit [Ping timeout: 245 seconds]
_phaul has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
paleobao has quit []
_phaul has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
Mrbuck has joined #ruby
NODE has quit [Client Quit]
_phaul has quit [Ping timeout: 252 seconds]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
_phaul has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
_phaul has quit [Ping timeout: 250 seconds]
NODE has joined #ruby
schne1der has joined #ruby
_phaul has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
skx86 has joined #ruby
_phaul has joined #ruby
NODE has quit [Quit: changing servers]
claudiuinberlin has joined #ruby
Mrbuck has quit [Remote host closed the connection]
NODE has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
MrCrackPot has joined #ruby
_phaul has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
duderonomy has joined #ruby
_phaul has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
xco has joined #ruby
duderonomy has quit [Ping timeout: 276 seconds]
_phaul has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
_phaul has joined #ruby
ur5us has joined #ruby
erikh has joined #ruby
MrCrackPot has quit [Remote host closed the connection]
* erikh waves
ur5us__ has quit [Read error: Connection reset by peer]
CrazyEddy has quit [Ping timeout: 252 seconds]
<erikh> I guess #ruby-lang DIAF
<erikh> end of an era
MrCrackPot has joined #ruby
ellcs has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
_phaul has quit [Ping timeout: 268 seconds]
<leah2> true
_phaul has joined #ruby
NODE has quit [Quit: changing servers]
MrCrackPot has quit [Remote host closed the connection]
MrCrackPot has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NODE has joined #ruby
MrCrackPot has quit [Max SendQ exceeded]
akemhp has quit [Ping timeout: 252 seconds]
MrCrackPot has joined #ruby
_phaul has quit [Ping timeout: 276 seconds]
_phaul has joined #ruby
Jonopoly has joined #ruby
xco has joined #ruby
Skarlso has quit [Quit: The Lounge - https://thelounge.chat]
_phaul has quit [Ping timeout: 252 seconds]
MuffinPimp has quit [Quit: Goodbye.]
im0nde has quit [Ping timeout: 250 seconds]
im0nde_ has joined #ruby
Skarlso has joined #ruby
_phaul has joined #ruby
lxsameer has joined #ruby
MrCrackPot has quit [Remote host closed the connection]
MrCrackPot has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
MuffinPimp has joined #ruby
MrCrackPot has quit [Read error: Connection reset by peer]
_phaul has quit [Ping timeout: 265 seconds]
MuffinPimp has quit [Client Quit]
Skarlso has quit [Quit: The Lounge - https://thelounge.chat]
MuffinPimp has joined #ruby
_phaul has joined #ruby
Skarlso has joined #ruby
_whitelogger has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
TomyWork has joined #ruby
ellcs1 has joined #ruby
_phaul has joined #ruby
rapha has joined #ruby
<rapha> why does obj = [] ; puts "yup, it's an array" if obj.class == Array work, but case obj.class; when Array then puts "yup, it's an array"; end doesn't?
<rapha> (hi all)
sergioro has left #ruby [#ruby]
sergioro has joined #ruby
sergioro has left #ruby [#ruby]
_phaul has quit [Ping timeout: 276 seconds]
stooj has quit [Ping timeout: 265 seconds]
_phaul has joined #ruby
stooj has joined #ruby
<Bish> can someone tell me what the last guy said that hightlighted me?
<Bish> was it ytti ?
<Bish> my backlog doesnt go as far
_phaul has quit [Ping timeout: 240 seconds]
cliffindor[m] has quit [Quit: killed]
sepp2k has quit [Quit: killed]
samdixon[m] has quit [Quit: killed]
Hanma[m] has quit [Quit: killed]
Hanspolo[m] has quit [Quit: killed]
mariusz-kowalski has quit [Quit: killed]
turt2live has quit [Quit: killed]
iotatron[m] has quit [Quit: killed]
linuus[m] has quit [Quit: killed]
danielk43[m] has quit [Quit: killed]
kira_rose[m] has quit [Quit: killed]
Corey[m] has quit [Quit: killed]
otaznik[m] has quit [Quit: killed]
someGmrGrl[m] has quit [Quit: killed]
execat[m] has quit [Quit: killed]
lakrivite[m] has quit [Quit: killed]
qbrd[m] has quit [Quit: killed]
kp666[m] has quit [Quit: killed]
arup_r has joined #ruby
_phaul has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_phaul has quit [Ping timeout: 245 seconds]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
<Bish> brb
Bish has quit [Quit: leaving]
_phaul has joined #ruby
<leftylink> rapha: because `case obj.class; when Array` asks whether `Array === obj.class`, which it is not. The only reasonably close possibilities that are true is that `Array === obj` and `Class === obj.class`.
<leftylink> because case uses ===, not ==, to determine whether to take a `when`.
Bish has joined #ruby
ellcs1 has quit [Ping timeout: 265 seconds]
<Bish> re
_phaul has quit [Ping timeout: 252 seconds]
<leftylink> &>> Class.method(:===).owner
<rubydoc> # => Module (https://carc.in/#/r/864a)
<leftylink> okay, so then I refer to the documentation of
<leftylink> &ri Module#===
<leftylink> that explains it.
_phaul has joined #ruby
_phaul has quit [Ping timeout: 246 seconds]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 246 seconds]
<rapha> leftylink: thank you for the explanation! So, practically, the sensible thing to do is `case obj.class.to_s` and `when 'Array' then`?
<rapha> Oh, wait. That says "Of limited use for modules, but can be used in `case` statements to classify objects by class."
<leftylink> I don't like that. I would prefer to `case obj; when Array`. but you should pick whatever fits your purposes, based on the knowledge of what === does.
<rapha> Aaaaaaah, that simple!
<rapha> Yay, that works perfectly and looks MUCH better :-D
_phaul has joined #ruby
_phaul has quit [Ping timeout: 246 seconds]
akemhp_ has joined #ruby
ntsrth^ has joined #ruby
_phaul has joined #ruby
_phaul has quit [Ping timeout: 250 seconds]
DTZUZO has quit [Ping timeout: 268 seconds]
akemhp has joined #ruby
akemhp_ has quit [Ping timeout: 250 seconds]
_phaul has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
akemhp_ has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
akemhp has quit [Ping timeout: 245 seconds]
_phaul has quit [Ping timeout: 268 seconds]
<Bish> does this channel have a backlog somewhere?
<Bish> oh, there in the topic
DTZUZO has joined #ruby
_phaul has joined #ruby
DTZUZO has quit [Ping timeout: 252 seconds]
qbrd[m] has joined #ruby
kira_rose[m] has joined #ruby
linuus[m] has joined #ruby
sepp2k has joined #ruby
execat[m] has joined #ruby
Corey[m] has joined #ruby
kp666[m] has joined #ruby
turt2live has joined #ruby
samdixon[m] has joined #ruby
cliffindor[m] has joined #ruby
iotatron[m] has joined #ruby
Hanma[m] has joined #ruby
otaznik[m] has joined #ruby
lakrivite[m] has joined #ruby
Hanspolo[m] has joined #ruby
someGmrGrl[m] has joined #ruby
mariusz-kowalski has joined #ruby
danielk43[m] has joined #ruby
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 245 seconds]
DTZUZO has joined #ruby
NODE has quit [Quit: changing servers]
Nicmavr has quit [Read error: Connection reset by peer]
NODE has joined #ruby
arup_r has quit []
DTZUZO has quit [Ping timeout: 240 seconds]
Nicmavr has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
someGmrGrl[m] has quit [Quit: User has been idle for 30+ days.]
NODE has joined #ruby
DTZUZO has quit [Ping timeout: 276 seconds]
leah2 has quit [Remote host closed the connection]
DTZUZO has joined #ruby
NODE has quit [Quit: changing servers]
leah2 has joined #ruby
NODE has joined #ruby
DTZUZO has quit [Ping timeout: 276 seconds]
DTZUZO has joined #ruby
AJA4350 has joined #ruby
DTZUZO has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
dasher00 has joined #ruby
cthu| has quit [Ping timeout: 250 seconds]
DTZUZO has quit [Ping timeout: 250 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 268 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
grilix has joined #ruby
csaunders has quit [Quit: later tater]
DTZUZO has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
donofrio has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
DTZUZO has quit [Ping timeout: 265 seconds]
NODE has quit [Client Quit]
DTZUZO has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
DTZUZO has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 276 seconds]
DTZUZO has joined #ruby
jcalla has quit [Ping timeout: 252 seconds]
rwb has quit [Ping timeout: 250 seconds]
DTZUZO_ has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
DTZUZO_ has quit [Ping timeout: 245 seconds]
DTZUZO_ has joined #ruby
DTZUZO_ has quit [Ping timeout: 276 seconds]
NODE has quit [Quit: changing servers]
DTZUZO_ has joined #ruby
NODE has joined #ruby
lucasb has joined #ruby
yann-kaelig has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
DTZUZO_ has quit [Ping timeout: 246 seconds]
DTZUZO_ has joined #ruby
DTZUZO_ has quit [Ping timeout: 265 seconds]
DTZUZO_ has joined #ruby
Bish has quit [Remote host closed the connection]
conta has joined #ruby
DTZUZO_ has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby
DTZUZO_ has joined #ruby
Technodrome has joined #ruby
arup_r has joined #ruby
DTZUZO_ has quit [Ping timeout: 268 seconds]
clemens3 has joined #ruby
cgibsonm_ has joined #ruby
schne1der has quit [Ping timeout: 252 seconds]
DTZUZO_ has joined #ruby
cgibsonm_ has quit [Ping timeout: 245 seconds]
solars has joined #ruby
jcalla has joined #ruby
DTZUZO_ has quit [Ping timeout: 246 seconds]
DTZUZO_ has joined #ruby
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 268 seconds]
vondruch_ is now known as vondruch
yann-kaelig has quit [Quit: yann-kaelig]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arup_r has quit []
sickdyd has joined #ruby
DTZUZO_ has quit [Ping timeout: 240 seconds]
DTZUZO_ has joined #ruby
DTZUZO_ has quit [Ping timeout: 250 seconds]
<rapha> hmm
<rapha> if i *only* rescue NameError => e, all *other* exceptions should result in a crash, no?
DTZUZO_ has joined #ruby
drincruz has joined #ruby
<rapha> or perhaps better to ask: is there a way to check beforehand whether Object.const_get('Something', Class.new) would succeed?
schne1der has joined #ruby
suukim has joined #ruby
DTZUZO_ has quit [Ping timeout: 268 seconds]
<rapha> Oh, simply defined? will do :)
DTZUZO_ has joined #ruby
grilix has quit [Ping timeout: 252 seconds]
fphilipe has quit [Ping timeout: 268 seconds]
hutch1 has joined #ruby
<rapha> Nevermind, it does take Kernel#const_defined?
Creatornator has joined #ruby
DTZUZO_ has quit [Ping timeout: 268 seconds]
DTZUZO_ has joined #ruby
rmnull has joined #ruby
rmnull has left #ruby ["WeeChat 2.4"]
fphilipe has joined #ruby
conta has quit [Quit: conta]
nowhereman has joined #ruby
nowhere_man has quit [Ping timeout: 276 seconds]
DTZUZO_ has quit [Ping timeout: 276 seconds]
DTZUZO_ has joined #ruby
brool has joined #ruby
DTZUZO_ has quit [Ping timeout: 265 seconds]
DTZUZO_ has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
mwlang_ has joined #ruby
MrCrackPot has joined #ruby
<mwlang_> Is it possible to tell if an instance variable has been set before calling instance_variable_get ? Looking to fix a warning: warning: instance variable @foo not initialized
DTZUZO_ has quit [Ping timeout: 240 seconds]
<mwlang_> of course I had to ask the world before I could find the answer myself: instance_variable_defined? was the answer.
DTZUZO_ has joined #ruby
reber has joined #ruby
sickdyd has quit [Quit: leaving]
<al2o3-cr> mwlang_: instance_variable_defined?
DTZUZO_ has quit [Ping timeout: 265 seconds]
<al2o3-cr> oh, you found it.
<mwlang_> yeah, I found it. I just couldn’t get my google fu on until I got some coffee and thought about it more. :-). I do wonder though…It’s Ruby 2.6 that’s emitting these not initalized warnings…does that mean Ruby 2.7 and beyond will one day be throwing errors and we need to fix our code? If so, I have some issues to open on two or three gems that my project is depending on.
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has joined #ruby
AndroidKitKat has joined #ruby
DTZUZO_ has joined #ruby
<AndroidKitKat> Is this the official ruby channel? I normally would post a bug like this on the dev tracker (and probably still will), but under this page: https://www.ruby-lang.org/en/documentation/ , the "Ruby User's Guide" is a 404
<AndroidKitKat> thank you
millerti has joined #ruby
DTZUZO_ has quit [Ping timeout: 268 seconds]
grilix has joined #ruby
DTZUZO_ has joined #ruby
im0nde_ has quit [Quit: ZNC 1.7.4 - https://znc.in]
im0nde has joined #ruby
DTZUZO_ has quit [Ping timeout: 265 seconds]
SeepingN has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<skx86> AndroidKitKat: works for me
<skx86> AndroidKitKat: wait nvm no it doesnt
Creatornator has joined #ruby
<AndroidKitKat> Okay, I was about to say wut
<skx86> wut!!! lol
<AndroidKitKat> This is the URL: https://www.rubyist.net/~slagell/ruby/ after you click on the link
_phaul has quit [Ping timeout: 246 seconds]
hutch1 has quit [Ping timeout: 246 seconds]
_phaul has joined #ruby
NODE has quit [Quit: changing servers]
DTZUZO_ has joined #ruby
<al2o3-cr> mwlang_: i don't know where the warning is coming from, #instance_variable_get should return nil if it's not initialised.
NODE has joined #ruby
NODE has quit [Client Quit]
<gearnode> mwlang: this issue can help you to understand https://github.com/jeremyevans/sequel/issues/1184
<gearnode> mwlang: Sequel lib has this kind of warning
_phaul has quit [Ping timeout: 245 seconds]
<mwlang_> here’s a gist of some of what I see, but I get > 10,000 warnings altogether like this across four or five gem libraries: https://gist.github.com/mwlang/e493223563be5671f9c11fe6d903287e
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO_ has quit [Ping timeout: 276 seconds]
DTZUZO_ has joined #ruby
hutch1 has joined #ruby
NODE has joined #ruby
<gearnode> mwlang_: do you have some code maybe I can help you :)P
NODE has quit [Client Quit]
<mwlang_> gearnode: well that sure hit the nail on the head. thanks for that reference and background info
NODE has joined #ruby
_phaul has joined #ruby
DTZUZO_ has quit [Ping timeout: 268 seconds]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
csaunders has joined #ruby
hutch1 has quit [Ping timeout: 276 seconds]
_phaul has joined #ruby
hutch1 has joined #ruby
s2013 has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
_phaul has quit [Ping timeout: 246 seconds]
yann-kaelig has joined #ruby
dionysus69 has quit [Remote host closed the connection]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
_phaul has joined #ruby
reber_ has joined #ruby
reber has quit [Ping timeout: 240 seconds]
twodayslate has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
andikr has quit [Remote host closed the connection]
_phaul has joined #ruby
ellcs has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
ellcs has quit [Ping timeout: 250 seconds]
_phaul has joined #ruby
MrCrackPot has quit [Ping timeout: 250 seconds]
_phaul has quit [Ping timeout: 252 seconds]
_phaul has joined #ruby
za1b1tsu has joined #ruby
NODE has quit [Quit: changing servers]
Jonopoly has quit [Quit: WeeChat 2.5]
NODE has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
booboy has quit [Quit: ZNC - https://znc.in]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
_phaul has joined #ruby
_phaul has quit [Ping timeout: 246 seconds]
conta has joined #ruby
_phaul has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
i9zO5AP has joined #ruby
_phaul has joined #ruby
Ai9zO5AP has quit [Ping timeout: 268 seconds]
akemhp_ has quit [Ping timeout: 250 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_phaul has quit [Ping timeout: 265 seconds]
volix has quit [Read error: Connection reset by peer]
akemhp has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
_phaul has joined #ruby
conta has quit [Quit: conta]
_phaul has quit [Ping timeout: 250 seconds]
cthulchu has joined #ruby
duderonomy has joined #ruby
_phaul has joined #ruby
volix has joined #ruby
NODE has quit [Quit: changing servers]
_phaul has quit [Ping timeout: 250 seconds]
NODE has joined #ruby
_phaul has joined #ruby
hiroaki has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 276 seconds]
cthulchu has quit [Ping timeout: 245 seconds]
_phaul has joined #ruby
fphilipe has quit [Ping timeout: 268 seconds]
Creatornator has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
Creatornator has quit [Client Quit]
akemhp has quit [Ping timeout: 265 seconds]
claudiuinberlin has joined #ruby
cthulchu has joined #ruby
_phaul has joined #ruby
rippa has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
fphilipe has joined #ruby
_phaul has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
sameerynho has joined #ruby
AJA4350 has joined #ruby
akemhp has joined #ruby
fphilipe has quit [Ping timeout: 250 seconds]
akemhp_ has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
akemhp has quit [Ping timeout: 250 seconds]
_phaul has joined #ruby
johnny56 has joined #ruby
akemhp_ has quit [Quit: Leaving]
akemhp has joined #ruby
wildtrees has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
_phaul has quit [Ping timeout: 250 seconds]
akemhp has quit [Ping timeout: 240 seconds]
_phaul has joined #ruby
greengriminal has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
prestorium has quit [Ping timeout: 245 seconds]
davispuh has joined #ruby
cliluw has joined #ruby
reber_ has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Ping timeout: 252 seconds]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
jidar has quit [Quit: WeeChat 2.6]
jidar has joined #ruby
_phaul has joined #ruby
fphilipe has joined #ruby
Nahra has joined #ruby
Nahra has joined #ruby
_phaul has quit [Ping timeout: 276 seconds]
_phaul has joined #ruby
conta has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.6]
spacesuitdiver has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
gix has joined #ruby
al2o3-cr has joined #ruby
_phaul has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
bluvinyl2 has joined #ruby
bluvinyl has joined #ruby
_phaul has joined #ruby
Fridtjof has joined #ruby
_phaul has quit [Ping timeout: 246 seconds]
<bluvinyl2>
_phaul has joined #ruby
conta has quit [Ping timeout: 265 seconds]
akemhp has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
cd has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bluvinyl has quit [Quit: Leaving]
rubies4life has joined #ruby
<rubies4life> what's the best way to create a string from the results of each iteration?
<rubies4life> i could of course just append to a variable but that seems kinda crude
_phaul has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
salerace has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
_phaul has quit [Ping timeout: 240 seconds]
salerace has quit [Remote host closed the connection]
spacesuitdiver has quit [Ping timeout: 276 seconds]
caterfxo has joined #ruby
salerace has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
clemens3 has quit [Quit: WeeChat 1.6]
_phaul has joined #ruby
yann-kaelig has quit [Quit: yann-kaelig]
<rubies4life> never mind, i just refactored it into a function call
rubies4life has quit [Remote host closed the connection]
suukim has quit [Quit: Konversation terminated!]
salerace has quit [Quit: salerace]
jenrzzz has joined #ruby
ur5us has joined #ruby
duderonomy has quit [Ping timeout: 245 seconds]
mwlang_ has quit [Quit: mwlang_]
mwlang_ has joined #ruby
<AndroidKitKat> I have a quick question -- I'm trying to figure out why when i go to iterate through this array, i'm getting repeat variables, but when I just do 'puts perms' i don't see any repeats
<AndroidKitKat> https://dpaste.org/ooaW
<AndroidKitKat> I think my main issue is with the class I'm expanding on from lines 3 to 13
<AndroidKitKat> I know this code isn't elegant at all, but I'm currently learning
<AndroidKitKat> ahh wait, nevermind, i found my issue
hutch1 has quit [Ping timeout: 250 seconds]
tsujp has quit [Ping timeout: 250 seconds]
prestorium has joined #ruby
hutch1 has joined #ruby
tsujp has joined #ruby
tsujp has quit [Read error: Connection reset by peer]
JohanP has joined #ruby
prestorium has quit [Quit: prestorium]
tsujp has joined #ruby
greengriminal has joined #ruby
skx86 has joined #ruby
claudiuinberlin has joined #ruby
Fusl has quit [Excess Flood]
Fusl has joined #ruby
spacesuitdiver has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
AJA4351 has joined #ruby
sagax has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
greengriminal has quit [Quit: Leaving]
<AndroidKitKat> Is there an equivalent to an ordered dict from collections in Ruby?
<AndroidKitKat> so you can add something to a hash, that defaults with the key 1,2,3,4, ... n, n +1
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<erikh> do you really want an array?
<AndroidKitKat> I want the instant lookup from a hash
<AndroidKitKat> I have suuuuuper big arrays
<erikh> check out mmap
<erikh> array lookup and iteration should be faster than a hash
<erikh> at the end of the day, that's just some really basic math. hash key management is much more complicated in comparison
_phaul has quit [Ping timeout: 245 seconds]
<AndroidKitKat> I think the bigger problem is how i'm storing my data, to really access my data I have to have 4 nested loops
<erikh> possibly
akemhp_ has joined #ruby
<erikh> why are you storing this at all?
<erikh> ah nvm
<erikh> I bet password cracking tools have some good algos for this
JohanP has quit [Ping timeout: 250 seconds]
<AndroidKitKat> I'm finding all permutations of words, using String.permutation, for each length, so for example, the string ab would return a,b, ab, ba
akemhp has quit [Ping timeout: 276 seconds]
<AndroidKitKat> I think I know the proper way to do this with a hash
<erikh> you could use a set for this
<AndroidKitKat> doh
spacesuitdiver has joined #ruby
<erikh> then the operations become fairly linear if you want to take a semi-brute force approach
<erikh> this is all guesswork on my end fwiw
<erikh> I wouldn't rely on it
_phaul has joined #ruby
<AndroidKitKat> yeah I think a set is the right strategy
<AndroidKitKat> thanks
Creatornator has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
howdoi has joined #ruby
akemhp_ has quit [Ping timeout: 245 seconds]
<AndroidKitKat> yeah, a set was exactly what i needed, as well as a change to how i generate permutations, thanks again erikh
<erikh> \o/
_phaul has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
chamunks has quit [Quit: Don't worry I'm not gone yet.]
_phaul has quit [Ping timeout: 265 seconds]
<AndroidKitKat> really, really liking the way ruby does things
<AndroidKitKat> it's a nice breath of fresh air after doing only python
fphilipe has quit [Ping timeout: 250 seconds]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
DTZUZO_ has joined #ruby
_phaul has joined #ruby
houhoulis has joined #ruby
mwlang_ has quit [Quit: mwlang_]
_phaul has quit [Ping timeout: 276 seconds]
JohanP has joined #ruby
_phaul has joined #ruby
fphilipe has joined #ruby
_phaul has quit [Ping timeout: 245 seconds]
JohanP has quit [Ping timeout: 250 seconds]
_phaul has joined #ruby
fphilipe has quit [Ping timeout: 250 seconds]
_phaul has quit [Ping timeout: 250 seconds]
bluvinyl2 has quit [Ping timeout: 250 seconds]
_phaul has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grilix has quit [Quit: Ooops]
AJA4350 has quit [Ping timeout: 268 seconds]
reber has joined #ruby
rwb has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 240 seconds]
JohanP has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
JohanP has quit [Read error: Connection reset by peer]
Creatornator has joined #ruby
Nicmavr has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
xco has joined #ruby
chamunks has joined #ruby
claudiuinberlin has joined #ruby
vondruch has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby
NODE has quit [Quit: changing servers]
drincruz has quit [Ping timeout: 240 seconds]
NODE has joined #ruby
Caerus has quit [Ping timeout: 276 seconds]
bvdw has quit [Read error: Connection reset by peer]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
bvdw has joined #ruby
jottr has quit [Quit: WeeChat 2.6]
AJA4350 has joined #ruby
houhoulis has quit []
Caerus has joined #ruby
reber has quit [Remote host closed the connection]
sergioro has joined #ruby
drincruz has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
SuperLag has quit [Remote host closed the connection]
Caerus has quit [Ping timeout: 276 seconds]
akemhp has joined #ruby
houhoulis has joined #ruby
akemhp has quit [Ping timeout: 268 seconds]
Caerus has joined #ruby
houhoulis has quit [Ping timeout: 268 seconds]
davidw has quit [Ping timeout: 268 seconds]