supay has quit [Quit: Connection closed for inactivity]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
smp has joined #ruby
smp has quit [Client Quit]
grokify has quit [Ping timeout: 240 seconds]
darkstardevx has quit [Ping timeout: 260 seconds]
smp has joined #ruby
smp has quit [Client Quit]
idiocrash has quit [Ping timeout: 250 seconds]
smp has joined #ruby
wand has quit [Ping timeout: 258 seconds]
mitt3ns has quit [Quit: leaving]
crax23 has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
ur5us has quit [Ping timeout: 272 seconds]
darkstardevx has joined #ruby
darkstardevx has quit [Remote host closed the connection]
darkstardevx has joined #ruby
galtgendo has joined #ruby
wand has joined #ruby
<galtgendo>
likely something basic: when I do something like foo.set_text('Prefix: %s' % condition ? '(%d) %s' % [val1, str1] : '- '), the text gets set (while condition is true) to '(:val1) :str1 ' instead of 'Prefix: (:val1) :str1' . why and how to avoid it?
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #ruby
Sankalp has quit [Ping timeout: 240 seconds]
<leftylink>
because % is higher precedence.
<leftylink>
so, use parentheses to specify the order you actually want
John_Ivan_ has joined #ruby
<leftylink>
to understand what's happening, simply reduce the example
<leftylink>
that's equivalent to the above and demonstrates the reason
cartdrige has joined #ruby
kerunaru has joined #ruby
Guest97 has joined #ruby
Sankalp has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 240 seconds]
Vonter has quit [Ping timeout: 250 seconds]
cxl has joined #ruby
<cxl>
Okay, this is going to sound dumb but I can't ever remember if "Lala#method" refers to class method on an instance method...
Vonter has joined #ruby
<adam12>
cxl: Instance.
cartdrige has joined #ruby
crax23 has quit [Ping timeout: 272 seconds]
kerunaru has quit [Ping timeout: 272 seconds]
<cxl>
adam12: do you use a mneomonic or something?
<adam12>
cxl: More so, if you looked at Lala.method, could you call that as-is?
<adam12>
If so, it's a class method.
<adam12>
You can't call Lala#method as-is, so you must need to create an instance of it. I guess that's my thinking.
cartdrige has quit [Ping timeout: 250 seconds]
cocalero has joined #ruby
jpn has joined #ruby
cocalero has quit [Client Quit]
<cxl>
Thanks
reset has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
kerunaru has joined #ruby
D_A_N has joined #ruby
jpn has joined #ruby
wand has quit [Ping timeout: 258 seconds]
desnudopenguino has joined #ruby
rndChars has joined #ruby
<adam12>
RubyKaigi videos are up on YT.
<cxl>
Anyone else using nvim with YouCompleteMe? Whenever I save a ruby file, vim (I suspect via YCM) deletes all comments... This is very annoying but I'm not 100% sure it's YCM's doing and if it is, what option is responsible.
<cxl>
Any ideas?
<adam12>
cxl: Can you share your list of plugins in a gist?
<adam12>
cxl: Stripping comments is such a _neat_ feature :P
<cxl>
Yeah... I don't even know why it messes with ruby files as the prettier plugin doesn't list ruby in its supported filetypes...
dpreacher has left #ruby [#ruby]
<galtgendo>
leftylink: thanks, thank was it; also, a minor surprise, expected the reverse oder
kerunaru has quit [Ping timeout: 240 seconds]
kerunaru has joined #ruby
cartdrige has joined #ruby
Vaevictus has left #ruby [#ruby]
some14u has joined #ruby
some14u has quit [Client Quit]
eddof13 has joined #ruby
Guest97 has quit [Quit: Client closed]
crax23 has joined #ruby
Y05hito__ has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cartdrige has quit [Ping timeout: 250 seconds]
crax23 has quit [Ping timeout: 260 seconds]
eddof13 has joined #ruby
grokify has joined #ruby
jpn_ has joined #ruby
grokify has quit [Remote host closed the connection]
jpn has quit [Ping timeout: 250 seconds]
grokify has joined #ruby
kerunaru has quit [Remote host closed the connection]
polishdub has joined #ruby
grokify has quit [Remote host closed the connection]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
Guest97 has joined #ruby
Guest97 has quit [Quit: Client closed]
eddof13 has joined #ruby
quintasan_ has quit []
D_A_N has quit [Ping timeout: 260 seconds]
quintasan has joined #ruby
D_A_N has joined #ruby
grokify has joined #ruby
jpn_ has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
grokify has quit [Ping timeout: 272 seconds]
jpn has quit [Ping timeout: 272 seconds]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
Guest97 has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 250 seconds]
yxhuvud has quit [Read error: Connection reset by peer]
grokify has joined #ruby
yxhuvud has joined #ruby
benjaminwil has quit [Ping timeout: 252 seconds]
weyhmueller has quit [Ping timeout: 252 seconds]
benjaminwil has joined #ruby
Milos has quit [Ping timeout: 252 seconds]
jhawthorn has quit [Ping timeout: 252 seconds]
jhass has quit [Ping timeout: 252 seconds]
justache has joined #ruby
hasley has joined #ruby
Milos has joined #ruby
mahler has quit [Ping timeout: 252 seconds]
weyhmueller has joined #ruby
bougyman_ has joined #ruby
clemens3 has quit [Ping timeout: 252 seconds]
galtgendo has quit [Ping timeout: 252 seconds]
sphex has quit [Ping timeout: 252 seconds]
entropy has joined #ruby
fcser has quit [Ping timeout: 252 seconds]
bougyman has quit [Ping timeout: 252 seconds]
Guest9768 has quit [Ping timeout: 252 seconds]
entropie has quit [Ping timeout: 252 seconds]
aestheti1 has quit [Ping timeout: 252 seconds]
eam has quit [Ping timeout: 252 seconds]
entropy is now known as entropie
jhawthorn has joined #ruby
jhass has joined #ruby
Guest97 has quit [Quit: Client closed]
thecliguy has quit [Ping timeout: 252 seconds]
CalimeroTeknik has quit [Ping timeout: 252 seconds]
justHaunted has quit [Ping timeout: 252 seconds]
jidar has quit [Ping timeout: 252 seconds]
sphex has joined #ruby
eam has joined #ruby
aestheti1 has joined #ruby
Guest9768 has joined #ruby
thecliguy has joined #ruby
grokify has quit [Remote host closed the connection]
fcser has joined #ruby
ctk has joined #ruby
Guest97 has joined #ruby
clemens3 has joined #ruby
galtgendo has joined #ruby
jidar has joined #ruby
justache is now known as justHaunted
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
ctk is now known as CalimeroTeknik
CalimeroTeknik has quit [Changing host]
CalimeroTeknik has joined #ruby
grokify has joined #ruby
<Guest97>
Hi, any good article for object equality in ruby?
<Guest97>
also what's the difference between `eql?`, `.object_id` and `.hash`?
grokify has quit [Ping timeout: 255 seconds]
<adam12>
Guest97: .eql? is for comparison. .object_id is the VMs identifier for the object. .hash is a method used for determining equality (and maybe other things). Often .eql? might call .hash.
<Guest97>
adam12: So basically I want to override the equals method for my class. Does ruby behave the same way as java's equals does?
<Guest97>
It can be added into the About section, for people new to the channel?
___nick___ has joined #ruby
<leftylink>
in fact, if there are public logs, there *has* to be some notification of channel members... if there isn't channel members, the channel is in violoation of network policies, and I would have to report this channel...
<leftylink>
s/isn't channel members/isn't any notification/
<leftylink>
I hope this channel can resolve this matter quickly, before I am forced to lodge a report. I do not want to cause any adverse actions to be taken against the channel
<adam12>
leftylink: Seems kind of a stretch, don't you think?
<adam12>
None of the operators of this IRC channel are the maintainers of the IRC bot that captures the messages for public viewing, and that doesn't stop other users from logging publicly either.
<leftylink>
okay, well, that's good that's good, it means I won't have to report the channel. we're all good here!
<leftylink>
carry on and I apologise for my error
<adam12>
We endorse it on the website, so I'll ensure that we are acting as good irc netizens.