havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6, 2.6.0-preview1: https://www.ruby-lang.org || Paste 4+ lines of text to https://gist.github.com || Rails questions? Ask in #RubyOnRails || Books: https://goo.gl/wpGhoQ || Logs: https://irclog.whitequark.org/ruby
ryandv has joined #ruby
alfiemax has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
ta_ has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryandv has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
samort7 has quit []
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
\void has quit [Quit: So long, and thanks for all the fish.]
ta_ has joined #ruby
<weaksauce> arand this is a touch more idiomatic and testable ruby... though some would do it differently https://gist.github.com/fiveNinePlusR/67c1a9de69bd3a3f80986b07581affe5
<weaksauce> take from it what you will if anything
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
alfiemax has joined #ruby
karapetyan has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
ResidentBiscuit has joined #ruby
cdg has quit [Remote host closed the connection]
<arand> weaksauce: That looks really nice indeed.
gnufied has quit [Ping timeout: 276 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Guest93774 is now known as lemur
lemur has quit [Changing host]
lemur has joined #ruby
lemur is now known as baweaver
allcentury has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
negatifze has joined #ruby
nchambers is now known as uplime
negatifze has quit [Client Quit]
ryzokuken has quit [Quit: Connection closed for inactivity]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 240 seconds]
phaul has quit [Quit: WeeChat 2.0.1]
phaul has joined #ruby
dviola has joined #ruby
gnufied has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.0.1]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<arand> weaksauce: I would be inclined to name them something which reflect their mutating nature (i.e. with a '!'), is that usually done with methods like these?
eblip has joined #ruby
def_jam has joined #ruby
<weaksauce> yeah, that's correct arand
eb0t has quit [Ping timeout: 252 seconds]
eb0t- has quit [Ping timeout: 265 seconds]
eblip is now known as eb0t
ta_ has quit [Ping timeout: 246 seconds]
def_jam is now known as eb0t-
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
ta_ has joined #ruby
duckpuppy has joined #ruby
alfiemax has joined #ruby
jameser has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
jameser has quit [Remote host closed the connection]
epochwolf has quit [Read error: Connection reset by peer]
jameser has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
epochwolf has joined #ruby
lytol has quit [Remote host closed the connection]
ResidentBiscuit has quit [Remote host closed the connection]
jxv has joined #ruby
mostlybadfly has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
alfiemax has joined #ruby
DenSchub has quit [Ping timeout: 248 seconds]
jxv has quit [Quit: string can snapped]
ycyclist has quit [Ping timeout: 260 seconds]
dinfuehr has quit [Ping timeout: 276 seconds]
dinfuehr has joined #ruby
DenSchub has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
cthulchu_ has joined #ruby
cthu has quit [Ping timeout: 246 seconds]
nowhere_man has joined #ruby
karapetyan has joined #ruby
nowhereman_ has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 260 seconds]
Psybur_ has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
Psybur has quit [Ping timeout: 240 seconds]
epochwolf has quit [Ping timeout: 260 seconds]
pilne has quit [Quit: Leaving]
Psybur_ is now known as Psybur
Psybur has quit [Changing host]
Psybur has joined #ruby
imode has quit [Ping timeout: 264 seconds]
marr has quit [Ping timeout: 248 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
epochwolf has joined #ruby
duckpuppy has joined #ruby
cdg has joined #ruby
ycyclist has joined #ruby
<ycyclist> So I am trying to do a case statement on something.class, and it always goes to the else case.
<ycyclist> What's with that?
duckpuppy has quit [Ping timeout: 264 seconds]
ta_ has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
dinfuehr_ has joined #ruby
tolerablyjake has joined #ruby
tolerablyjake has quit [Client Quit]
dinfuehr has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
mrush has quit [Ping timeout: 240 seconds]
mrush has joined #ruby
mrush is now known as Guest86850
ghormoon has quit [Ping timeout: 240 seconds]
roshanavand has quit [Quit: Leaving.]
Frenchiie has joined #ruby
ghormoon has joined #ruby
tolerablyjake has joined #ruby
<Radar> ycyclist: code plz
ghormoon has quit [Excess Flood]
n0m4d1c has quit [Ping timeout: 260 seconds]
tolerablyjake has quit [Client Quit]
<ycyclist> Sorry. I went around it by using if statements. I was in a hurry. Let me see if I can get it back.. Sorry man.
nachoman has joined #ruby
ghormoon has joined #ruby
imode has joined #ruby
<ycyclist> Okay, there it is.
ghormoon has quit [Excess Flood]
<ycyclist> I'll keep that around for tomorrow in case you already went away. I need to go in a minute anyway.
Frenchiie has quit [Quit: Page closed]
ghormoon has joined #ruby
darkhanb has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
Guest86850 has quit [Ping timeout: 246 seconds]
universa1 has quit [Ping timeout: 252 seconds]
universa1 has joined #ruby
mrush_ has joined #ruby
tamouse__ has joined #ruby
tamouse__ has quit [Client Quit]
alfiemax has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 246 seconds]
gizmore|2 has joined #ruby
gizmore has quit [Ping timeout: 246 seconds]
John_Ivan has quit [Remote host closed the connection]
ta_ has joined #ruby
duckpuppy has joined #ruby
alfiemax has joined #ruby
ryandv has joined #ruby
kn-928 has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
duckpuppy has quit [Ping timeout: 263 seconds]
ryandv has quit [Ping timeout: 248 seconds]
<ycyclist> xc
<baweaver> ycyclist: what does class return?
<baweaver> >> 'string'.class
<ruby[bot]> baweaver: # => String (https://eval.in/972900)
<baweaver> and what does case use for evaluation?
<baweaver> >> String === String
<ruby[bot]> baweaver: # => false (https://eval.in/972901)
<baweaver> >> String == String
<ruby[bot]> baweaver: # => true (https://eval.in/972902)
<baweaver> Now what's === aliased to for String?
<baweaver> >> ['test'.is_a?(String), String === 'test']
<ruby[bot]> baweaver: # => [true, true] (https://eval.in/972903)
<baweaver> Therefor...
<baweaver> >> String.is_a?(String)
<ruby[bot]> baweaver: # => false (https://eval.in/972904)
<baweaver> and therein is your problem
<baweaver> >> case 'string'; when String then 1 else 0 end
<ruby[bot]> baweaver: # => 1 (https://eval.in/972905)
<baweaver> >> case 'string'.class; when String then 1 else 0 end
<ruby[bot]> baweaver: # => 0 (https://eval.in/972906)
karapetyan has joined #ruby
alfiemax has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
<ycyclist> Yes, but how would you do it then?
<baweaver> Notice the first one when it works?
<baweaver> it doesn't have `class` on it.
karapetyan has quit [Ping timeout: 246 seconds]
<ycyclist> Yes, so I just co case "#{thing.class}" and that works.
jenrzzz has quit [Ping timeout: 264 seconds]
<baweaver> No
<baweaver> then it's always a String
<ycyclist> Yes, well I can use when "string". I am sorry. I already knew I could fix it without a case. Am I still being too dense?
<baweaver> you're trying to match against the class of your argument
<baweaver> by wrapping it in a quotes what's it always going to be?
<ycyclist> I mainly want it readable and case makes it look more readable.
<ycyclist> If I can do it with a case, I will, but if you think I can use case thingy.class somehow properly, I'll try it.
<baweaver> case "#{thing.class}"
<baweaver> What class will case _always_ get now?
KeyJoo has quit [Ping timeout: 263 seconds]
<baweaver> you want: case thing
<ycyclist> The cases that work (and I just reran my tests on it, so I know they do) are Array MyThingy etc.
<baweaver> because if you do it that other way it's _always_ a string
<ycyclist> But "Array", "MyThingy" in quotes of course.
<ycyclist> If I could do it without quotes, that would be greate.
<baweaver> Take off the quotes and use: case thing
<baweaver> read that triple equals article above
<ycyclist> but I think with quotes in a case is more helpfully readable than the if statements.
<baweaver> you don't need them
ta_ has quit [Ping timeout: 260 seconds]
<ycyclist> Ok. I really did look at that twice. Trying again.
<baweaver> Anyways, I need to go grab food. Be back later.
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
AJA4350 has quit [Quit: AJA4350]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
memo1 has joined #ruby
<ycyclist> Ok. I get it now. However, magic is not very auditable. I think making a string out of it, or using if statements is clearer. I really do appreciate your energies, however.
ta_ has joined #ruby
<ycyclist> I know that overloading can be handy, but it can also be a time-sink for research into vernacular when people don't want to spend such time.
<ycyclist> Please accept my complements, however, for your knowledge. That is good to know, and I may use it some day. Not this time, though.
<ycyclist> Compliments.
jameser has quit [Remote host closed the connection]
jameser has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
milardovich has joined #ruby
dnewkerk has joined #ruby
GinoMan has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has quit [Client Quit]
jenrzzz has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
ramfjord has joined #ruby
ryandv has joined #ruby
ryzokuken has joined #ruby
pddman has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
ryandevilla has joined #ruby
ryandv has quit [Ping timeout: 246 seconds]
willmichael has quit [Ping timeout: 264 seconds]
willmichael has joined #ruby
duckpuppy has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
duckpuppy has quit [Ping timeout: 240 seconds]
Psybur has quit [Ping timeout: 240 seconds]
GinoMan has quit [Ping timeout: 264 seconds]
ryandevilla has quit [Ping timeout: 246 seconds]
Gnut__ has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 264 seconds]
xorgnak has quit [Ping timeout: 252 seconds]
kn-928 has quit [Quit: WeeChat 2.0.1]
Gnut_ has joined #ruby
ta_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
DEac- has quit [Ping timeout: 240 seconds]
DEac- has joined #ruby
jackjackdripper has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ta_ has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
Yzguy has quit [Quit: Zzz...]
jeffreylevesque has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
milardovich has quit []
jenrzzz has quit [Ping timeout: 260 seconds]
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
ledestin has quit [Ping timeout: 240 seconds]
Yzguy has joined #ruby
gix has joined #ruby
gix- has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
eckhardt_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
unreal_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
unreal has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has quit [Ping timeout: 264 seconds]
ta_ has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
sauvin_ has joined #ruby
jenrzzz has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
willmichael has quit [Ping timeout: 246 seconds]
nicesignal has quit [Remote host closed the connection]
willmichael has joined #ruby
ramfjord has joined #ruby
nicesignal has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
karapetyan has joined #ruby
jackjackdripper has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ramfjord has joined #ruby
armyriad has quit [Quit: Leaving]
ltd has quit [Quit: leaving]
ltd has joined #ruby
dnewkerk has quit [Ping timeout: 260 seconds]
ltd has quit [Client Quit]
ltd has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 240 seconds]
willmichael has joined #ruby
sauvin_ is now known as bocaneri
nadir has joined #ruby
pastorinni has joined #ruby
jamesaxl has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
memo1 has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 264 seconds]
ta_ has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
armyriad has joined #ruby
cdg has joined #ruby
sidx64 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
sidx64 has quit [Client Quit]
sidx64 has joined #ruby
armyriad has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 276 seconds]
armyriad has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
reber has joined #ruby
arquebus has joined #ruby
ta_ has quit [Remote host closed the connection]
Bish_ has quit [Ping timeout: 256 seconds]
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
mbr has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
zipace has joined #ruby
Drakevr_ is now known as Drakevr
Drakevr has quit [Changing host]
Drakevr has joined #ruby
willmichael has quit [Ping timeout: 246 seconds]
willmichael has joined #ruby
arquebus has quit [Quit: Konversation terminated!]
arquebus has joined #ruby
SuperLag has joined #ruby
oleo has quit [Quit: Leaving]
arquebus has quit [Client Quit]
arquebus has joined #ruby
pastorinni has quit [Remote host closed the connection]
Matthew1 has joined #ruby
ozzloy_ has quit [Ping timeout: 240 seconds]
ozzloy has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
karapetyan has joined #ruby
arquebus has quit [Quit: Konversation terminated!]
karapetyan has quit [Remote host closed the connection]
RougeR has quit [Ping timeout: 260 seconds]
jordanm has quit [Remote host closed the connection]
jordanm has joined #ruby
cschneid has joined #ruby
alexis has joined #ruby
alexis is now known as Guest5805
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arekushi has joined #ruby
alfiemax has quit [Remote host closed the connection]
jenrzzz has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
duckpuppy has joined #ruby
sidx64 has joined #ruby
alfiemax has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
yadnesh has quit [Quit: EliteBNC 1.6.5 - http://elitebnc.org]
conta has joined #ruby
ramfjord has joined #ruby
imode has quit [Ping timeout: 260 seconds]
sidx64_ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
ramfjord has joined #ruby
sidx64 has quit [Read error: Connection reset by peer]
roelof has joined #ruby
<roelof> I try to solve level 4 of the ruby warrior. But I see this error ` comparising Fixnum with nil failed ` with this code : http://lpaste.net/363679
<roelof> what did I do wrong ?
andikr has joined #ruby
krandi has joined #ruby
krandi has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
sidx64_ has quit [Ping timeout: 268 seconds]
sidx64 has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Max SendQ exceeded]
jackjackdripper has quit [Quit: Leaving.]
JoshS has joined #ruby
nachoman has quit []
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
<dminuoso> >> nil < 5
<ruby[bot]> dminuoso: # => undefined method `<' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/972990)
<dminuoso> >> 5 < nil
<ruby[bot]> dminuoso: # => comparison of Fixnum with nil failed (ArgumentError) ...check link for more (https://eval.in/972991)
<dminuoso> roelof: ^-
<roelof> am now at level 6 of ruby warrior but im really stuck. I want that if the health is not enough the warrior steps one back and rest but of I use this code I see a message that I can only perform one action at the time
<roelof> how to solve this ?
<dminuoso> roelof: Do you have a ruby specific question?
nachoman has joined #ruby
<roelof> yep . how I can make this work in ruby. I try to learn some ruby by using this site
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
KeyJoo has joined #ruby
<dminuoso> roelof: Your question is too general. Perhaps you are biting off more than you can chew?
<roelof> it can be
<roelof> other recommendations for the first steps in ruby ?
stoffus has joined #ruby
<dminuoso> roelof: The book "Well Grounded Rubyist" is a frequently recommended books for beginners to Ruby and programming.
ta_ has joined #ruby
<roelof> thanks
roelof has quit [Quit: Page closed]
ramfjord has joined #ruby
karapetyan has joined #ruby
hahuang65_ has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
alfiemax has quit [Remote host closed the connection]
Burgestrand has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
karapetyan has quit [Ping timeout: 264 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
mtkd has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Bish has joined #ruby
ramfjord has joined #ruby
Yzguy has quit [Quit: Zzz...]
alfiemax has joined #ruby
conta1 has joined #ruby
duckpuppy has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
conta has quit [Ping timeout: 260 seconds]
conta1 is now known as conta
alfiemax has quit [Remote host closed the connection]
gh has joined #ruby
alfiemax has joined #ruby
Guest5805 has quit [Ping timeout: 246 seconds]
arekushi has quit [Ping timeout: 246 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
clemens3 has joined #ruby
alexis has joined #ruby
alexis is now known as Guest33581
n008f4g_ has joined #ruby
banisterfiend has joined #ruby
gh has quit [Quit: Leaving]
aufi has joined #ruby
tomphp has joined #ruby
TomyWork has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 260 seconds]
suukim has joined #ruby
claudiuinberlin has joined #ruby
viuo has joined #ruby
yohji has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
willmichael has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
schneider has joined #ruby
oetjenj has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
oetjenj has quit [Client Quit]
Guest33581 has quit [Ping timeout: 256 seconds]
amelliaa has joined #ruby
sameerynho has joined #ruby
DTZUZO has quit [Ping timeout: 264 seconds]
alfiemax has quit [Remote host closed the connection]
sylario has joined #ruby
nachoman has quit []
marr has joined #ruby
willmichael has joined #ruby
aupadhye has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 246 seconds]
duckpuppy has joined #ruby
jottr has joined #ruby
alfiemax has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
alfiemax has quit [Ping timeout: 263 seconds]
jottr has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
Burgestrand has quit [Quit: Closing time!]
mikecmpbll has joined #ruby
Railroad has joined #ruby
<Railroad> I heard ruby was the next big thing
tomphp has joined #ruby
<apeiros> ok?
minimalism has quit [Quit: minimalism]
Railroad has quit [Ping timeout: 260 seconds]
z3uS has quit [Remote host closed the connection]
z3uS has joined #ruby
RougeR has joined #ruby
mtkd has quit []
mtkd has joined #ruby
d^sh has quit [Ping timeout: 256 seconds]
oetjenj has joined #ruby
KeyJoo has quit [Remote host closed the connection]
d^sh has joined #ruby
Burgestrand has joined #ruby
alfiemax has quit [Remote host closed the connection]
cdg has joined #ruby
phaul has joined #ruby
ramfjord has joined #ruby
guille-moe has joined #ruby
oetjenj has quit [Quit: Textual IRC Client: www.textualapp.com]
ss942 has joined #ruby
Burgestrand has quit [Quit: Closing time!]
cdg has quit [Ping timeout: 264 seconds]
<ss942> funny behaviour when I type ruby -v as a root it says me 2.5.0 when I type this with casual user it says ruby is not installed
<ss942> what the hell?
qba73 has joined #ruby
WhereIsMySpoon has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
qba73 has quit [Remote host closed the connection]
<dminuoso> ss942: different PATH environment variables probably.
qba73 has joined #ruby
ramfjord has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
<dminuoso> ss942: "ruby is not installed" just means "I was not able to find an executable named `ruby` in any of the directories specified in PATH"
willmichael has joined #ruby
karapetyan has joined #ruby
WhereIsMySpoon_ has quit [Ping timeout: 265 seconds]
cdg has joined #ruby
WhereIsMySpoon_ has joined #ruby
cdg_ has joined #ruby
ryzokuken has quit [Quit: Connection closed for inactivity]
dinfuehr_ is now known as dinfuehr
ramfjord has quit [Ping timeout: 246 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
qba73 has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
Burgestrand has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
cdg__ has joined #ruby
cdg_ has quit [Ping timeout: 246 seconds]
workmad3_ has joined #ruby
<WhereIsMySpoon> Burgestrand: hey :) wonder if you’re up for solving a little conundrum I’ve come up against again? :)
<Burgestrand> WhereIsMySpoon part of the deal is that you invite everybody to solve it and not just me :) i.e. post it in here and hope for luck
<WhereIsMySpoon> True! :)
<Burgestrand> No promises from my side, slightly more busy today!
ramfjord has quit [Ping timeout: 240 seconds]
<WhereIsMySpoon> Alright then, the output of the EasyAudio::Stream is buffers of floats. I (and burg who was helping me yesterday) figured it would be floats -1 to +1, however it seems to be of a larger range…I”m getting numbers from +7 to -6 or so even by moderately raising my voice
<WhereIsMySpoon> Wondering what the heck these numbers are…from the code its definitely amplitude, but why its not measuring in -1 to +1 I have no idea
<WhereIsMySpoon> Tis quite confusing
workmad3 has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg__ has quit [Ping timeout: 276 seconds]
riotjones has joined #ruby
Burgestrand has quit [Quit: Closing time!]
ramfjord has joined #ruby
mikecmpb_ has joined #ruby
karapetyan has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Ping timeout: 264 seconds]
shuforov has joined #ruby
rabajaj has joined #ruby
qba73 has joined #ruby
duckpuppy has joined #ruby
Guest33581 has joined #ruby
yosafbridge has quit [Quit: Leaving]
snapcase_ has quit [Quit: Reconnecting]
snapcase has joined #ruby
viuo has left #ruby [#ruby]
alex`` has joined #ruby
KeyJoo has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
yosafbridge has joined #ruby
Burgestrand has joined #ruby
<Burgestrand> WhereIsMySpoon your audio library should tell you what the range is I believe, i.e. portaudio docs, if they don't it's probably some standard format
<WhereIsMySpoon> Burgestrand: EasyAudio is sending stream[:sampleFormat] = API::Float32 as the format, which is defined in ffi-portaudio as 0x1
<WhereIsMySpoon> which looks like it should just be -1 to +1 values
<WhereIsMySpoon> there are very little docs for these libs
sidx64 has joined #ruby
karapetyan has quit [Remote host closed the connection]
howdoi has joined #ruby
Burgestrand has quit [Quit: Closing time!]
armando has quit [Ping timeout: 256 seconds]
Serpent7776 has joined #ruby
armando has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
tomphp has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
gnufied has joined #ruby
tomphp has quit [Client Quit]
cdg has joined #ruby
shuforov has quit [Read error: Connection reset by peer]
shuforov has joined #ruby
toks has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
gnufied has quit [Ping timeout: 264 seconds]
Burgestrand has joined #ruby
Matthew1 has quit []
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
Burgestrand has quit [Client Quit]
ramfjord has quit [Ping timeout: 256 seconds]
amelliaa has quit [Quit: -]
guardianx has joined #ruby
hfp_work has quit [Quit: bye]
toks has quit [Quit: Leaving]
hfp_work has joined #ruby
tcopeland has quit [Quit: tcopeland]
duckpuppy has joined #ruby
dviola has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guardianx has quit []
nachoman has joined #ruby
Psybur has joined #ruby
Cavallari has joined #ruby
jimmylu2333 has joined #ruby
za1b1tsu has quit [Quit: Leaving]
tomphp has joined #ruby
tomphp has quit [Client Quit]
ryzokuken has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
jeffreylevesque has joined #ruby
ldnunes has joined #ruby
am55 has joined #ruby
suukim has quit [Remote host closed the connection]
tomphp has joined #ruby
AJA4350 has joined #ruby
duckpuppy has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
roelof has joined #ruby
<roelof> Where can I the best ask question if im stuck with ruby warriors
jimmylu2333 has quit [Quit: Mutter: www.mutterirc.com]
duckpuppy has quit [Ping timeout: 260 seconds]
plasmik has joined #ruby
<plasmik> Hello
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nachoman has quit []
banisterfiend has joined #ruby
<plasmik> I need to compile some C-Ruby stuff, it has 'require mkmf' line, and this mkmf file spits errors and tells me to install developer tools
KeyJoo has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
<plasmik> I am in msys2, ruby 2.4.0
<plasmik> developer tools are outdated for me
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
<plasmik> though project is made for Ruby 1.8.2
jcalla has joined #ruby
tcopeland has joined #ruby
<plasmik> mkmf.rb file is part of ruby installation
rfoust has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has joined #ruby
rwb has quit [Ping timeout: 240 seconds]
Psybur has quit [Remote host closed the connection]
ss942 has left #ruby [#ruby]
milardovich has joined #ruby
Psybur has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
karapetyan has joined #ruby
ghcaf has joined #ruby
ghcaf has quit [Remote host closed the connection]
dcluna has quit [Ping timeout: 248 seconds]
karapetyan has quit [Remote host closed the connection]
synthroid has joined #ruby
karapetyan has joined #ruby
dcluna has joined #ruby
jimmylu2333 has joined #ruby
karapetyan has quit [Remote host closed the connection]
jimmylu2333 has quit [Client Quit]
belmoussaoui has joined #ruby
stoffus_ has joined #ruby
perzival has joined #ruby
karapetyan has joined #ruby
stoffus has quit [Ping timeout: 240 seconds]
willmichael has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 246 seconds]
goatish has joined #ruby
sidx64 has joined #ruby
ramfjord has joined #ruby
willmichael has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
mtkd has quit []
cdg has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
karapetyan has quit [Remote host closed the connection]
mtkd has joined #ruby
mydog2 has joined #ruby
minimalism has joined #ruby
<mydog2> mron...
<mydog2> morn
karapetyan has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
milardovich has quit [Remote host closed the connection]
<roelof> good afternoon here
<phaul> pretty miserable afternoon here
<roelof> here too. the whole day rain , rain and rain
alfiemax has quit [Remote host closed the connection]
bmurt has joined #ruby
bmurt has quit [Client Quit]
roelof has quit [Quit: Page closed]
duckpuppy has joined #ruby
psychicist__ has joined #ruby
bmurt has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
anisha has quit [Quit: This computer has gone to sleep]
duckpuppy has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
Burgestrand has joined #ruby
qba73 has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
milardovich has joined #ruby
goatish has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
goatish has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
arquebus has joined #ruby
karapetyan has quit [Remote host closed the connection]
duckpuppy has joined #ruby
arup_r has joined #ruby
<arup_r> I want to match if a string contains upper case, lower case, and numeric characters. What I tried http://rubular.com/r/vHGcQmx3l7 is wrong. What is the correct regex ?
Burgestrand has quit [Quit: Closing time!]
roshanavand has quit [Quit: Leaving.]
TomyWork has quit [Remote host closed the connection]
pastorinni has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
<dminuoso> arup_r: It matches..
pastorinni has quit [Remote host closed the connection]
<phaul> you have lower case z where you meant upper case? otherwise you get a match if your regexp matches any part of the string. I'm guessing you want too match if the regexp matches the entire string. to do that use begin string end string anchors in the regexp \A, \z
<phaul> s/too/to/
<arup_r> hm I want the string will contain only a-zA-Z0-9 nothing else
mikecmpbll has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
banisterfiend has joined #ruby
<phaul> arup_r: what I said about matching the entire string ^^
arquebus has quit [Quit: Konversation terminated!]
<arup_r> right.. thanks phaul http://rubular.com/r/CU9TNBRvn8
arquebus has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has quit [Client Quit]
arup_r has quit []
willmichael has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
arquebus has quit [Client Quit]
nowhere_man has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
karapetyan has joined #ruby
ramfjord has joined #ruby
<dminuoso> Which drunken lord decided to use \A to signal beginning and \z to signal end?
willmichael has joined #ruby
<dminuoso> I mean considering ASCII codes fine I get it, but this is not intuitive.
milardovich has quit [Remote host closed the connection]
<phaul> yeah, I always have to look up which one is upper :)
milardovich has joined #ruby
<phaul> most ppl just use ^ and $ without realizing that that's different semantics
karapetyan has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
shuforov has quit [Quit: Leaving]
shuforov has joined #ruby
jeffreylevesque has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
rwb has joined #ruby
milardovich has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 264 seconds]
alex`` has joined #ruby
milardovich has joined #ruby
<nemesit|znc> anyone know how to get the json 1.8.1 gem to install on osx?
<mydog2> anyone here work on side projects for $$$
<mydog2> and happens to be in us/north america??
kapil___ has quit [Quit: Connection closed for inactivity]
milardovich has quit [Remote host closed the connection]
schneider has quit [Read error: Connection reset by peer]
schneider has joined #ruby
<dminuoso> I dont work for three dollars.
<dminuoso> You'd have to spam a bit more to make it worth my while.
DTZUZO has quit [Ping timeout: 245 seconds]
kapil___ has joined #ruby
duckpuppy has joined #ruby
allcentury has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.0.1]
griffindy has joined #ruby
griffindy has quit [Client Quit]
milardovich has joined #ruby
jamesaxl has joined #ruby
rafik has joined #ruby
Burgestrand has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
tvw has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
ryandevilla1 has joined #ruby
Sr_X has joined #ruby
milardovich has joined #ruby
tomphp has joined #ruby
milardovich has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
tomphp has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
oleo has joined #ruby
Rapture has joined #ruby
samort7 has joined #ruby
milardovich has joined #ruby
plasmik has quit [Quit: WeeChat 2.0.1]
rafik has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Psybur has joined #ruby
GinoMan has joined #ruby
mzo has joined #ruby
roshanavand has joined #ruby
netherwolfe has joined #ruby
mzo has quit [Client Quit]
qba73 has joined #ruby
xuyuheng has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
Burgestrand has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
milardovich has quit [Remote host closed the connection]
schneider has quit [Read error: Connection reset by peer]
schneider has joined #ruby
morfin60 has joined #ruby
<morfin60> hello
ramfjord has quit [Ping timeout: 264 seconds]
<morfin60> i am not sure how implement that: i have class A and classes B,C,D inherited from this class, all of them have method to parse all pages called collect_blocks of resource(pool) and i parse them until there is no output, this method is protected and used in multiple public methods of classes, any clue how can i pass code to process single page?
<morfin60> i realized how dumb was idea trying collect all blocks in huge array and want to rewrite code to process page-by-page
GinoMan has quit [Ping timeout: 264 seconds]
funnel has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
ycyclist has quit [Ping timeout: 260 seconds]
sriehl_ has quit [Quit: ZNC 1.6.5 - http://znc.in]
Burgestrand has joined #ruby
sriehl has joined #ruby
sriehl has joined #ruby
sriehl has quit [Changing host]
funnel has joined #ruby
mydog2 has left #ruby ["Leaving"]
jamiejackson2577 has joined #ruby
karapetyan has quit [Remote host closed the connection]
n0m4d1c has joined #ruby
kn-928 has joined #ruby
TaintedTrust has joined #ruby
karapetyan has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
jeffreylevesque has joined #ruby
mtkd has joined #ruby
duckpuppy has joined #ruby
Burgestrand has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
milardovich has joined #ruby
ryzokuken has quit [Quit: Connection closed for inactivity]
rafik has joined #ruby
milardovich has quit [Remote host closed the connection]
GinoMan has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 264 seconds]
shinnya has joined #ruby
mzo has joined #ruby
GinoMan has quit [Ping timeout: 252 seconds]
coderphive has joined #ruby
TaintedTrust has quit [Ping timeout: 245 seconds]
tomphp has joined #ruby
cschneid has joined #ruby
pastorinni has joined #ruby
rikkipitt has joined #ruby
Cavallari has quit [Quit: Cavallari]
cdg has quit [Remote host closed the connection]
GinoMan has joined #ruby
jeffreylevesque_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 260 seconds]
stoffus_ has quit [Ping timeout: 264 seconds]
jimmylu2333 has joined #ruby
banisterfiend has quit [Ping timeout: 264 seconds]
jimmylu2333 has quit [Client Quit]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rikkipitt has quit [Quit: Leaving...]
rikkipitt has joined #ruby
rikkipitt has quit [Write error: Broken pipe]
TaintedTrust has joined #ruby
nadir has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
bmurt has joined #ruby
shinnya has quit [Ping timeout: 276 seconds]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
fiachetti has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
fiachetti has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
jamiejackson2577 has quit [Ping timeout: 264 seconds]
psychicist__ has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
ramfjord has joined #ruby
yrstrly has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
<yrstrly> Hi, could somebody help me? Got a really basic question about classes I have these two classes : https://imgur.com/a/g4L6N and when I run these code lines Todolist.new, Todo.new("get the milk"), @to_do_list.add(@to_do), I get the error undefined method `add' for nil:NilClass (NoMethodError) even though it's clearly defined in the class and is being applied to an instance of the class
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
xuyuheng has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 248 seconds]
TaintedTrust has quit [Ping timeout: 245 seconds]
synthroid has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
xuyuheng has joined #ruby
<mzo> yrstrly: @to_do_list only exists within the Todolist class
<mzo> it's an instance variable
<mzo> even if it did exist, it's just an array. not a Todolist. so you wouldn't call .add on it
<yrstrly> yes but the method add is defined in that class too
<yrstrly> so why can't I add it?
za1b1tsu has joined #ruby
<mzo> you can call .add on an instance of the Todolist class. nothing else.
<mzo> @to_do_list is not an instance of the Todolist class, so you can't call .add on it.
synthroid has joined #ruby
synthroid has quit [Remote host closed the connection]
synthroi_ has joined #ruby
<yrstrly> why is it not? it's defined in the initialize method for the class, so whenever Todolist.new is entered @to_do_list, an instance of the class Todolist, which is an empty array, will be created?
<yrstrly> I need to change the push in the method definition?
ramfjord has quit [Ping timeout: 260 seconds]
<mzo> within the context of the Todolist class, @to_do_list is an Array
<mzo> outside of the context of the Todolist class, @to_do_list is not anything.
<mzo> that's why it evaluates to nil
<mzo> there is no context where @to_do_list is an instance of the Todolist class
Silthias has joined #ruby
aufi has quit [Quit: Leaving]
<phaul> instance variables despite the name don't point to intances :)
Burgestrand has quit [Quit: Closing time!]
schneider has joined #ruby
duckpuppy has joined #ruby
tolerablyjake has joined #ruby
roshanavand has quit [Quit: Leaving.]
<WhereIsMySpoon> fucks sake this stupid goddamn library is doing my head in
cagomez has joined #ruby
<WhereIsMySpoon> im trying to use easy_audio https://github.com/lsegal/easy_audio and im just getting hangs like 70% of the time I try to close an EasyAudio::Stream object
<WhereIsMySpoon> its nuts
schneider has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 264 seconds]
<yrstrly> okay I think I understand, so what can I do to change my code so it works?
wnd-trans has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
iamdevnul_ has joined #ruby
mr-robert_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GinoMan has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
Silthias has left #ruby [#ruby]
musl_ has joined #ruby
Fraeon has joined #ruby
ghoti_ has joined #ruby
<phaul> yrstrly: If you want your code to be debugged, paste the whole thing in a gist. see topic.
xuyuheng has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
Xeago_ has joined #ruby
knight_ has joined #ruby
stairmast0r has joined #ruby
Burgestrand has joined #ruby
atta_ has joined #ruby
MarcWeber has joined #ruby
ccooke_ has joined #ruby
shuforov has quit [Ping timeout: 264 seconds]
sjums has joined #ruby
balo_ has joined #ruby
KeyJoo has joined #ruby
karapetyan has quit [Remote host closed the connection]
<yrstrly> I'd just like to know how to properly generate an instance, if I've not done it correctly, as I understood it, if you call Todolist.new, you'll have an empty array assigned to variable @to_do_list
<phaul> x = TodoList.new ; x.add(Todo.new('get milk'))
segy_ has joined #ruby
DTZUZO has joined #ruby
<phaul> you can factor out the call to Todo.new into a local variable too, just like x
WhereIsMySpoon has quit [Quit: WhereIsMySpoon]
cyberRodent_ has joined #ruby
nowhereman_ has quit [*.net *.split]
segy has quit [*.net *.split]
ericmath1son has quit [*.net *.split]
knight__ has quit [*.net *.split]
Freijo has quit [*.net *.split]
brodul has quit [*.net *.split]
MarcWebe1 has quit [*.net *.split]
sjums_ has quit [*.net *.split]
stairmast0r_ has quit [*.net *.split]
ccooke has quit [*.net *.split]
mrBen2k2k2k has quit [*.net *.split]
cyberRodent has quit [*.net *.split]
atta has quit [*.net *.split]
ghoti has quit [*.net *.split]
redondos has quit [*.net *.split]
erlend has quit [*.net *.split]
wnd has quit [*.net *.split]
badeball has quit [*.net *.split]
VladGh_ has quit [*.net *.split]
balo has quit [*.net *.split]
mrBen2k2k2k_ has quit [*.net *.split]
musl has quit [*.net *.split]
gbailey has quit [*.net *.split]
Fenhl has quit [*.net *.split]
auv has quit [*.net *.split]
iamdevnul has quit [*.net *.split]
Lloyd has quit [*.net *.split]
mr-robert has quit [*.net *.split]
HalcyonicStorm has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
biox has quit [*.net *.split]
zachary12 has quit [*.net *.split]
Xeago has quit [*.net *.split]
ncopa2 has quit [*.net *.split]
nettie has quit [*.net *.split]
brodul_ has joined #ruby
segy_ is now known as segy
cyberRodent_ is now known as cyberRodent
Xeago_ is now known as Xeago
amitchellbullard has joined #ruby
iamdevnul_ is now known as iamdevnul
mr-robert_ is now known as mr-robert
brodul_ is now known as brodul
wnd-trans is now known as wnd
biox has joined #ruby
erlend has joined #ruby
badeball has joined #ruby
gbailey has joined #ruby
<yrstrly> Thanks phaul, so there's nothing wrong with how I've defined the classes and methods?
zachary12 has joined #ruby
ericmathison has joined #ruby
sriehl has quit [Ping timeout: 240 seconds]
VladGh has joined #ruby
halbbalda has quit [Ping timeout: 240 seconds]
<phaul> bad indentations :)
Azure has quit [Ping timeout: 264 seconds]
naquad has quit [Ping timeout: 260 seconds]
GinoMan has joined #ruby
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
<phaul> I think it's fine
schneider has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
sriehl has joined #ruby
sriehl has joined #ruby
sriehl has quit [Changing host]
cdg has joined #ruby
ta_ has quit [Remote host closed the connection]
naquad has joined #ruby
halbbalda has joined #ruby
dn` has quit [Ping timeout: 255 seconds]
coffeejunk has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
<yrstrly> It now runs, but when I call add and then print the array, it hasn't been pushed into it
jcarl43 has joined #ruby
<yrstrly> It's still empty
kn-928 has quit [Quit: WeeChat 2.0.1]
rikkipitt has joined #ruby
conta has quit [Ping timeout: 246 seconds]
HalcyonicStorm has joined #ruby
Lloyd has joined #ruby
nettie has joined #ruby
Fenhl has joined #ruby
cdg_ has joined #ruby
auv has joined #ruby
za1b1tsu has quit [Read error: Connection reset by peer]
mtkd has quit []
ta_ has joined #ruby
rikkipitt has quit [Client Quit]
mtkd has joined #ruby
dn` has joined #ruby
xuyuheng has joined #ruby
allcentury has quit []
schneider has quit [Ping timeout: 264 seconds]
cdg has quit [Ping timeout: 246 seconds]
KeyJoo has quit [Ping timeout: 240 seconds]
<phaul> I also removed the unneeded Array inharitance
ta_ has quit [Ping timeout: 246 seconds]
<yrstrly> thanks very much
ryandevilla1 has quit [Ping timeout: 263 seconds]
ncopa2 has joined #ruby
yrstrly has quit [Quit: Page closed]
Jeff_D has joined #ruby
jamiejackson2577 has joined #ruby
xuyuheng has quit [Ping timeout: 264 seconds]
GinoMan has quit [Ping timeout: 240 seconds]
morfin60 has quit [Remote host closed the connection]
<Jeff_D> Can someone point me to equivalent Ruby code for the `gem install --explain` command? Capturing and scraping terminal output doesn't seem like the best way forward
yadnesh has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
orbyt_ has joined #ruby
andikr has quit [Remote host closed the connection]
xuyuheng has joined #ruby
Flonk has quit [Ping timeout: 268 seconds]
jamiejackson2577 has quit [Ping timeout: 276 seconds]
jamiejackson2577 has joined #ruby
<havenwood> Jeff_D: For example, try: Gem::Specification.find_by_name('rails').dependencies.map(&:to_s)
oncall-pokemon has quit [Quit: Connection closed for inactivity]
Burgestrand has quit [Quit: Closing time!]
ramfjord has joined #ruby
<Jeff_D> ah; thank you very much
aupadhye has quit [Ping timeout: 240 seconds]
imode has joined #ruby
netherwolfe has quit [Ping timeout: 264 seconds]
xuyuheng has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
GinoMan has joined #ruby
ryzokuken has joined #ruby
jamiejackson2577 has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yxhuvud has quit [Remote host closed the connection]
darkhanb has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blzn has joined #ruby
Yxhuvud has joined #ruby
rwb has quit [Ping timeout: 264 seconds]
willmichael has quit [Ping timeout: 240 seconds]
redondos has joined #ruby
qba73 has quit [Remote host closed the connection]
xuyuheng has joined #ruby
qba73 has joined #ruby
ta_ has joined #ruby
willmichael has joined #ruby
<Jeff_D> @havenwood Thanks for that; I was looking for something that does the equivalent of, say, `gem install rails --explain`, which lists specific versions of dependencies, dependencies of dependencies, and so on; it seems odd that I have to walk the dependency tree and build a gem list explicitly. But if that's what it takes, oh well
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has quit [Changing host]
xuyuheng has quit [Ping timeout: 264 seconds]
WhereIsMySpoon has quit [Client Quit]
duckpuppy has joined #ruby
synthroid has joined #ruby
Quentinius has joined #ruby
roshanavand has joined #ruby
xuyuheng has joined #ruby
synthroi_ has quit [Ping timeout: 264 seconds]
psychicist__ has joined #ruby
eckhardt has joined #ruby
willmichael has quit [Ping timeout: 256 seconds]
Quentinius has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 264 seconds]
alex`` has quit [Quit: WeeChat 2.0.1]
fiachetti has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Jeff_D has quit [Quit: STRPT: JMP $ ; Story of my day.]
mikecmpbll has quit [Quit: inabit. zz.]
fiachetti has joined #ruby
Serpent7776 has quit [Quit: Leaving]
xuyuheng has quit [Ping timeout: 256 seconds]
qba73 has quit [Ping timeout: 256 seconds]
ryandevilla1 has joined #ruby
ski7777 has quit [Ping timeout: 240 seconds]
qba73 has joined #ruby
cagomez has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 265 seconds]
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has quit [Changing host]
xuyuheng has joined #ruby
ski7777 has joined #ruby
GinoMan2440 has joined #ruby
mtkd has quit []
willmichael has joined #ruby
ta_ has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GinoMan has quit [Ping timeout: 276 seconds]
guacamole has joined #ruby
ramfjord has joined #ruby
mzo has quit [Quit: awoo :3]
Dimik has joined #ruby
xuyuheng has quit [Ping timeout: 256 seconds]
ski7777 has quit [Ping timeout: 246 seconds]
desperek has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
amelliaa has joined #ruby
workmad3_ has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
sameerynho has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
psychicist__ has joined #ruby
blzn has quit [Ping timeout: 240 seconds]
qba73 has quit [Ping timeout: 268 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yohji has quit [Remote host closed the connection]
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
yadnesh has quit [Quit: EliteBNC 1.6.5 - http://elitebnc.org]
yadnesh has joined #ruby
tomphp has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
xuyuheng has joined #ruby
guacamole has quit [Client Quit]
clemens3 has joined #ruby
psychicist__ has joined #ruby
xuyuheng has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
\void has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tvw has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
workmad3 has joined #ruby
ski7777 has joined #ruby
duckpuppy has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
snapcase has quit [Remote host closed the connection]
snapcase has joined #ruby
GinoMan2440 has quit [Remote host closed the connection]
GinoMan2440 has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
GinoMan2440 has quit [Remote host closed the connection]
xuyuheng has joined #ruby
jamesaxl has joined #ruby
GinoMan2440 has joined #ruby
ta_ has joined #ruby
xuyuheng has quit [Ping timeout: 264 seconds]
ski7777 has quit [Read error: Connection reset by peer]
ski7777 has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 264 seconds]
_main_ has joined #ruby
n0m4d1c has joined #ruby
Code4Dopamine has quit [Quit: Page closed]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pilne has joined #ruby
_main_ is now known as __main__
erlend has quit [Ping timeout: 248 seconds]
jeffreylevesque_ has quit [Ping timeout: 264 seconds]
erlend has joined #ruby
n0m4d1c_ has joined #ruby
synthroid has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
gregf_ has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
ldnunes has quit [Ping timeout: 260 seconds]
n0m4d1c has quit [Ping timeout: 246 seconds]
xuyuheng has joined #ruby
WhereIsMySpoon has quit [Ping timeout: 260 seconds]
<za1b1tsu> Anybody using ruby language server protocol with vim?
guacamole has quit [Quit: Textual IRC Client: www.textualapp.com]
KeyJoo has joined #ruby
tomphp has joined #ruby
xuyuheng has quit [Ping timeout: 260 seconds]
tomphp has quit [Client Quit]
n0m4d1c has joined #ruby
n0m4d1c_ has quit [Ping timeout: 264 seconds]
Zaab1t has joined #ruby
am55 has quit [Quit: am55]
bocaneri has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 246 seconds]
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has quit [Changing host]
am55 has joined #ruby
ramfjord has joined #ruby
ldnunes has joined #ruby
synthroid has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
fribmendes_away is now known as fribmendes
ramfjord has joined #ruby
n008f4g_ has joined #ruby
fribmendes is now known as fribmendes_away
rfoust has quit [Remote host closed the connection]
nadir has quit [Quit: Connection closed for inactivity]
deadnull has joined #ruby
rfoust has joined #ruby
ta_ has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
shuforov has joined #ruby
ramfjord has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
tomphp has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
bmurt has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
DTZUZU has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
GinoMan2440 has quit [Ping timeout: 264 seconds]
GinoMan has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
GinoMan has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
duckpuppy has joined #ruby
goatish has quit [Quit: bye]
vald has quit [Remote host closed the connection]
noizex has joined #ruby
balo_ is now known as balo
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xuyuheng has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
duckpuppy has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
psychicist__ has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
karapetyan has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
xuyuheng has quit [Ping timeout: 256 seconds]
pastorinni has quit [Remote host closed the connection]
pastorinni has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
DTZUZU has joined #ruby
GinoMan has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
ryandevilla1 has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
gizmore|2 is now known as gizmore
<za1b1tsu> asyncomplete is much slower then mucomplete, how is that even possible
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fribmendes_away is now known as fribmendes
pastorinni has quit [Ping timeout: 240 seconds]
ryandevilla1 has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
chouhoul_ has joined #ruby
ramfjord has joined #ruby
deadnull has quit [Quit: Ciao]
chouhoulis has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
agit0 has quit [Quit: and I'm out]
psychicist__ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
Lyubo1 has joined #ruby
ramfjord has joined #ruby
xuyuheng has joined #ruby
alex`` has joined #ruby
cagomez has quit [Remote host closed the connection]
perc1val has joined #ruby
r3m is now known as Pascal
ramfjord has quit [Ping timeout: 256 seconds]
xuyuheng has quit [Ping timeout: 240 seconds]
ryzokuken has quit [Quit: Connection closed for inactivity]
bmurt has joined #ruby
nowhereman_ has joined #ruby
amelliaa has quit [Quit: -]
nowhere_man has quit [Ping timeout: 264 seconds]
GinoMan has quit [Ping timeout: 256 seconds]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
n0m4d1c has quit [Ping timeout: 260 seconds]
pwelch has joined #ruby
perc1val has quit [Quit: WeeChat 2.0.1]
xuyuheng has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 256 seconds]
mwlang has joined #ruby
shuforov has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fribmendes is now known as fribmendes_away
karapetyan has joined #ruby
xuyuheng has quit [Ping timeout: 256 seconds]
n0m4d1c has joined #ruby
bmurt has quit [Ping timeout: 246 seconds]
pwelch has quit [Quit: Textual IRC Client: www.textualapp.com]
karapetyan has quit [Remote host closed the connection]
n0m4d1c_ has joined #ruby
tolerablyjake has joined #ruby
n0m4d1c has quit [Ping timeout: 256 seconds]
rafik has quit [Ping timeout: 240 seconds]
ryandevilla1 has quit [Ping timeout: 246 seconds]
xuyuheng has joined #ruby
ryandevilla1 has joined #ruby
WhereIsMySpoon has quit [Ping timeout: 240 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rabajaj has quit [Remote host closed the connection]
cagomez has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
rafik has joined #ruby
cagomez has quit [Remote host closed the connection]
duckpuppy has joined #ruby
xuyuheng has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
cagomez has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
cagomez has quit [Remote host closed the connection]
tcopeland has quit [Quit: tcopeland]
duckpuppy has quit [Ping timeout: 256 seconds]
cagomez has joined #ruby
ramfjord has joined #ruby
<gizmore> made a new hacking challenge... training programming level 3/10 : https://www.wechall.net/en/challenge/britcoin/
<gizmore> maybe someone here likes it
<gizmore> sorry for off-topic
RougeR has quit [Ping timeout: 264 seconds]
psychicist__ has quit [Ping timeout: 240 seconds]
RougeR has joined #ruby
ta_ has joined #ruby
xuyuheng has joined #ruby
shuforov has joined #ruby
anisha has joined #ruby
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
xuyuheng has quit [Ping timeout: 260 seconds]
zipace has quit [Ping timeout: 246 seconds]
klaas has joined #ruby
shuforov has quit [Ping timeout: 240 seconds]
erlend has quit [Ping timeout: 260 seconds]
erlend has joined #ruby
ski7777 has quit [Ping timeout: 265 seconds]
n0m4d1c has joined #ruby
n0m4d1c_ has quit [Read error: Connection reset by peer]
RougeR has quit [Ping timeout: 256 seconds]
ski7777 has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
ski7777 has quit [Read error: Connection reset by peer]
ski4x7 has joined #ruby
jcalla has quit [Quit: Leaving]
cagomez has quit [Remote host closed the connection]
willmichael has joined #ruby
vcavallo has joined #ruby
Rapture has joined #ruby
tomphp has joined #ruby
eckhardt has joined #ruby
xuyuheng has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
chouhoulis has joined #ruby
n0m4d1c_ has joined #ruby
n0m4d1c has quit [Read error: Connection reset by peer]
Pascal is now known as r3m
xuyuheng has quit [Ping timeout: 240 seconds]
Sr_X has quit [Read error: Connection reset by peer]
Sr_X has joined #ruby
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
Bounga has joined #ruby
n0m4d1c_ has quit [Read error: Connection reset by peer]
n0m4d1c has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
mrBen2k2k2k__ has joined #ruby
duckpuppy has joined #ruby
cagomez has quit [Client Quit]
xuyuheng has joined #ruby
cagomez has joined #ruby
synthroid has quit []
ldnunes has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
ldnunes has joined #ruby
xuyuheng has quit [Ping timeout: 240 seconds]
llua has quit [Quit: <Rudolph> shell code is what greycat reads to kids when he tucks them in]
llua has joined #ruby
duckpuppy has quit [Ping timeout: 268 seconds]
alex`` has quit [Quit: WeeChat 2.0.1]
ramfjord has quit [Ping timeout: 246 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n0m4d1c has quit [Read error: Connection reset by peer]
n0m4d1c_ has joined #ruby
n0m4d1c_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
karapetyan has joined #ruby
rafik has quit [Ping timeout: 252 seconds]
reber has quit [Remote host closed the connection]
eckhardt has joined #ruby
xuyuheng has joined #ruby
jeffreylevesque has joined #ruby
ldnunes has quit [Quit: Leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tolerablyjake has quit [Ping timeout: 245 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
xuyuheng has quit [Ping timeout: 256 seconds]
perzival has quit [Ping timeout: 264 seconds]
rafik has joined #ruby
workmad3 has joined #ruby
xuyuheng has joined #ruby
herbmillerjr has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
workmad3 has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
xuyuheng has quit [Ping timeout: 264 seconds]
Zaab1t has quit [Quit: Zaab1t]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
claudiuinberlin has joined #ruby
Mike11 has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
rafik has quit [Ping timeout: 260 seconds]
guille-moe has quit [Ping timeout: 264 seconds]
alex`` has joined #ruby
xuyuheng has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has quit [Ping timeout: 263 seconds]
duckpuppy has joined #ruby
xuyuheng has quit [Ping timeout: 260 seconds]
gizmore has quit [Quit: bbl]
kt2 has quit [Ping timeout: 240 seconds]
raynold has joined #ruby
gizmore has joined #ruby
kt has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
IshMael_ has joined #ruby
Azure has joined #ruby
cdg has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
n0m4d1c has joined #ruby
ryandevilla1 has quit [Ping timeout: 240 seconds]
cdg_ has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
shpoont has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
duper has joined #ruby
<IshMael_> Can someone explain to me, why there isnt a self on the key?(method_name) on the second line?
shpoont has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<phaul> IshMael_: it's about what self is. If you have time watch https://youtu.be/X2sgQ38UDVY, that should explain what self is
<phaul> but it's a lot more than what you are asking
clemens3 has quit [Ping timeout: 256 seconds]
<IshMael_> phaul: yep try to get it in my head ;) but on that example i got stuck
xuyuheng has joined #ruby
IshMael_ has quit [*.net *.split]
Mike11 has quit [*.net *.split]
Rapture has quit [*.net *.split]
willmichael has quit [*.net *.split]
nettie has quit [*.net *.split]
auv has quit [*.net *.split]
Lloyd has quit [*.net *.split]
gbailey has quit [*.net *.split]
biox has quit [*.net *.split]
funnel has quit [*.net *.split]
belmoussaoui has quit [*.net *.split]
dcluna has quit [*.net *.split]
WhereIsMySpoon_ has quit [*.net *.split]
hahuang65_ has quit [*.net *.split]
jordanm has quit [*.net *.split]
unreal_ has quit [*.net *.split]
ghormoon has quit [*.net *.split]
jrm has quit [*.net *.split]
jinie has quit [*.net *.split]
oz has quit [*.net *.split]
cjohnson has quit [*.net *.split]
_derpy has quit [*.net *.split]
rideh has quit [*.net *.split]
exchgr has quit [*.net *.split]
m27frogy has quit [*.net *.split]
rubemlrm has quit [*.net *.split]
volix has quit [*.net *.split]
Tempesta has quit [*.net *.split]
p0p0pr37 has quit [*.net *.split]
boshhead has quit [*.net *.split]
morfin has quit [*.net *.split]
mahlon has quit [*.net *.split]
madhatter has quit [*.net *.split]
havenwood has quit [*.net *.split]
ciscam has quit [*.net *.split]
linduxed has quit [*.net *.split]
Exagone313 has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
justinmcp has quit [*.net *.split]
jamesaxl has quit [Quit: WeeChat 2.0.1]
Mike11 has joined #ruby
willmichael has joined #ruby
nettie has joined #ruby
auv has joined #ruby
Rapture has joined #ruby
IshMael_ has joined #ruby
oz has joined #ruby
WhereIsMySpoon_ has joined #ruby
rideh has joined #ruby
cjohnson has joined #ruby
jinie has joined #ruby
funnel has joined #ruby
Lloyd has joined #ruby
dcluna has joined #ruby
hahuang65_ has joined #ruby
m27frogy has joined #ruby
madhatter has joined #ruby
unreal_ has joined #ruby
jrm has joined #ruby
ghormoon has joined #ruby
exchgr has joined #ruby
Tempesta has joined #ruby
biox has joined #ruby
volix has joined #ruby
morfin has joined #ruby
_derpy has joined #ruby
rubemlrm has joined #ruby
belmoussaoui has joined #ruby
gbailey has joined #ruby
mahlon has joined #ruby
jordanm has joined #ruby
p0p0pr37 has joined #ruby
boshhead has joined #ruby
justinmcp has joined #ruby
linduxed has joined #ruby
havenwood has joined #ruby
Exagone313 has joined #ruby
ByronJohnson has joined #ruby
ciscam has joined #ruby
rafik has joined #ruby
auv has quit [Max SendQ exceeded]
jrm has quit [Max SendQ exceeded]
Tempesta has quit [Max SendQ exceeded]
belmoussaoui has quit [Max SendQ exceeded]
ghormoon has quit [Max SendQ exceeded]
Exagone313 has quit [Max SendQ exceeded]
funnel has quit [Max SendQ exceeded]
ghormoon has joined #ruby
funnel has joined #ruby
belmoussaoui has joined #ruby
jottr has joined #ruby
<phaul> basically your gist has too little to tell what self is. But when you are inside a def inside a class statement self would refer to the instance of the class that receives the instance method.
Tempesta has joined #ruby
epochwolf has quit [Ping timeout: 260 seconds]
trautwein has quit [Ping timeout: 260 seconds]
Tempesta has quit [Changing host]
Tempesta has joined #ruby
<phaul> when a receiver is self most of the time it can be omitted
jrm has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
<IshMael_> phaul: thanks for the link to the video , but watched that already a few times
<phaul> it can'tbe ommited in certain cases, when the syntax confuses the interpreter, like slef.class
<phaul> self.class
auv has joined #ruby
<phaul> class would otherwise be a keyword
<apeiros> or self.foo =
Xeago has quit [Ping timeout: 260 seconds]
yadnesh has quit [Ping timeout: 260 seconds]
ldepandis has joined #ruby
<IshMael_> phaul: the code is from the Hashie GEM , which is an example from the book "Metaprogramming Ruby 2" by Paolo Perrotta
xuyuheng has quit [Ping timeout: 248 seconds]
Mike11 has quit [Quit: Leaving.]
epochwolf has joined #ruby
d^sh has joined #ruby
trautwein has joined #ruby
yadnesh has joined #ruby
Xeago has joined #ruby
Exagone313 has joined #ruby
rafik has quit [Ping timeout: 264 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
ResidentBiscuit has joined #ruby
<IshMael_> so i just wondered why there is a self.[] when i also can access the keys in that hash without the self in front
<phaul> [] requires self because the intrepreter doesn't like a bare [] operator without a receiver it. key? is fine with an implicit receiver. It's mostly just syntax really
shpoont has joined #ruby
<IshMael_> phaul .. that seems to clearify it. thanks for your time and help!
<apeiros> [] would be an array literal otherwise
<apeiros> but in the given case, there's also another reason
<apeiros> they don't use `self[arg1, arg2, …]` as one would usually do
<apeiros> they use `self.[](arg1, …)`, which is uncommon.
<apeiros> the reason being that they pass a block. and the syntax sugared form can't take one
<IshMael_> so far on "ruby is easily readable" :)
atmosx has left #ruby ["WeeChat 1.4"]
<apeiros> oh, actually it can when it's passed in &block form :-/
<apeiros> not sure then why they used `self.[](method_name, &blk)` instead of `self[method_name, &blk]`
tcopeland has joined #ruby
<apeiros> IshMael_: it mostly is. there are always tradeoffs.
rafik has joined #ruby
<IshMael_> apeiros: thats right! i took me not long to get into ruby. but well the topic metaprogramming and the concepts behind are sometimes like a hard, little nut until i can grasp it
pastorinni has joined #ruby
xuyuheng has joined #ruby
<apeiros> IshMael_: funny enough, it seems more complex than it actually is
cdg has joined #ruby
<IshMael_> apeiros: jep .., isnt that fun :-D
<apeiros> as weird as it is, it just takes a bit of time to unravel the simplicity ;-)
jshjsh has joined #ruby
<apeiros> (and accepting some of the "cheating" required to get it to work out)
<IshMael_> apeiros: i hope you are right .. i've just worked trough the first 60 pages, but that gave already a lot of insight. and im sure there is more to come
<apeiros> for example: there are no class methods in ruby, only instance methods. what people call class methods in ruby, are really just instance methods too.
ledestin has joined #ruby
<apeiros> i.e. there's not multiple "levels" where methods can exist, only one :)
<apeiros> and all you have to figure out is to which class/module a method belongs
<IshMael_> apeiros: yep, got that already. any class is an object too
<IshMael_> it just depends on the "point of view"
<phaul> altough lot tools like Yard calls them class methods, maybe even ri - I'm not sure
<IshMael_> method lookup (one step to the right and up) is learned
<apeiros> phaul: sure. it's convenient.
<phaul> I guess you just have to know that it's cheat and it's all fine :)
<phaul> yep
<apeiros> I call it class methods too
<apeiros> it's a lot shorter than instance method of the singleton_class
<IshMael_> phaul: what me got worried was that in the ruby source there seems to be a different name for eigenclasses(singleton classes) and metaclasses
<apeiros> ah, dminuoso can probably better explain that
<IshMael_> so first i thought that they are 2 totally differnt things, but they are not
xuyuheng has quit [Ping timeout: 246 seconds]
JoshS has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
erlend has quit [Ping timeout: 264 seconds]
ResidentBiscuit has joined #ruby
erlend has joined #ruby
xuyuheng has joined #ruby
mtkd has joined #ruby
milardovich has joined #ruby
ResidentBiscuit has quit [Ping timeout: 245 seconds]
AndBobsYourUncle has joined #ruby
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xuyuheng has quit [Ping timeout: 246 seconds]
milardovich has quit [Ping timeout: 240 seconds]
jshjsh has quit [Quit: Leaving]
minimalism has quit [Ping timeout: 260 seconds]
Sr_X has quit [Quit: Konversation terminated!]
Sr_X has joined #ruby
alex`` has quit [Ping timeout: 256 seconds]
vcavallo_ has joined #ruby
rafik has quit [Ping timeout: 264 seconds]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rafik has joined #ruby
shpoont has joined #ruby
vcavallo_ has quit [Remote host closed the connection]
am55 has quit [Quit: am55]
millerti has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
xuyuheng has joined #ruby
duckpuppy has joined #ruby
Asher has quit [Quit: Leaving.]
IshMael_ has quit [Ping timeout: 246 seconds]
<zenspider> rawr
<phaul> ahoy matey
rwb has joined #ruby
Asher has joined #ruby
xuyuheng has quit [Ping timeout: 256 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
ResidentBiscuit has joined #ruby
am55 has joined #ruby
Bounga has quit [Ping timeout: 256 seconds]
coderphive has quit [Quit: coderphive]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
sspreitz has quit [Quit: ZNC 1.6.2 - http://znc.in]
minimalism has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
sspreitz has joined #ruby
rafik has quit [Ping timeout: 246 seconds]
sanscoeur has quit [Ping timeout: 276 seconds]
nadir has quit [Quit: Connection closed for inactivity]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
am55 has quit [Quit: am55]
KeyJoo has quit [Ping timeout: 264 seconds]
iszak has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
paraxial has quit [Quit: The Lounge - https://thelounge.github.io]
cschneid has quit [Remote host closed the connection]
paraxial has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
xuyuheng has joined #ruby
za1b1tsu has quit [Quit: Leaving]
cdg has quit [Ping timeout: 240 seconds]
iszak has joined #ruby
iszak has joined #ruby
iszak has quit [Changing host]
ramfjord has joined #ruby
herbmillerjr has joined #ruby
Bounga has joined #ruby
rfoust has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
xuyuheng has quit [Ping timeout: 256 seconds]
Bounga has quit [Ping timeout: 256 seconds]
Bounga has joined #ruby
ramfjord has joined #ruby
xuyuheng has joined #ruby
samort7 has quit []
workmad3 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
Bounga has quit [Ping timeout: 256 seconds]
xuyuheng has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
alfiemax has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
cschneid has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
Bounga has joined #ruby
Puffball has joined #ruby
cschneid has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
alfiemax has quit [Remote host closed the connection]
Bounga has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
xuyuheng has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
ramfjord has quit [Ping timeout: 256 seconds]
Dimik has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
ramfjord has joined #ruby
milardovich has joined #ruby
xuyuheng has quit [Ping timeout: 264 seconds]
mtkd has quit []
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
duckpuppy has joined #ruby
pastorinni has quit [Remote host closed the connection]
n0m4d1c has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
ResidentBiscuit has quit [Ping timeout: 252 seconds]
duckpuppy has quit [Ping timeout: 246 seconds]
Bounga has joined #ruby
desperek has quit [Quit: xoxo]
jottr has quit [Quit: WeeChat 2.0.1]
ramfjord has quit [Ping timeout: 256 seconds]