mangold has quit [Quit: This computer has gone to sleep]
dar123 has joined #ruby
laaron has joined #ruby
qual has quit [Quit: qual]
zapata has quit [Ping timeout: 258 seconds]
zapata has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dar123 has joined #ruby
ua has quit [Ping timeout: 246 seconds]
mangold has joined #ruby
ricekrispie2 has quit [Ping timeout: 250 seconds]
ua has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
apparition has joined #ruby
conta has quit [Ping timeout: 255 seconds]
navin has joined #ruby
laaron has quit [Remote host closed the connection]
luminousnine has quit [Read error: Connection reset by peer]
laaron has joined #ruby
luminousnine has joined #ruby
luminousnine has quit [Changing host]
luminousnine has joined #ruby
conta has joined #ruby
spacesuitdiver has joined #ruby
apparition has quit [Quit: Bye]
Nattyfries66 has quit [Ping timeout: 272 seconds]
<kke>
today i learned: def foo(*args, **options) when called like foo(Bar.new) without options, calls respond_to?(:to_hash) && .to_hash on the Bar.new and if it can become a hash, it does, and ends up in options instead of args.
<kke>
when can that be useful?
<kke>
can it be avoided without sending an empty hash?
spacesuitdiver has quit [Ping timeout: 246 seconds]
tiogrand has joined #ruby
am0123 has quit [Ping timeout: 246 seconds]
laaron has quit [Remote host closed the connection]
ldnunes has joined #ruby
laaron has joined #ruby
<kke>
maybe it can be useful if you have something like `HashWithIndifferentAccess` or such. mostly i think it's more bad than good.
luminousnine has quit [Remote host closed the connection]
ubuntuisloved has joined #ruby
laaron has quit [Remote host closed the connection]
luminousnine has joined #ruby
luminousnine has quit [Changing host]
luminousnine has joined #ruby
jaddison has joined #ruby
Olek110 has quit [Remote host closed the connection]
Nattyfries66 has joined #ruby
laaron has joined #ruby
<kke>
or you mostly expect it not to do that and it gives you headache, the times you want it to do that are probably like 1 in 1000 and you could just as well handle that in your method.
za1b1tsu has quit [Ping timeout: 245 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
laaron has quit [Remote host closed the connection]
AJA4350 has joined #ruby
ubuntuisloved has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mangold has quit [Quit: This computer has gone to sleep]
teclator has quit [Ping timeout: 252 seconds]
laaron has joined #ruby
teclator has joined #ruby
laaron has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
ellcs1 has quit [Quit: Leaving.]
ellcs has joined #ruby
laaron has joined #ruby
ubuntuisloved has joined #ruby
za1b1tsu has joined #ruby
tiogrand_ has joined #ruby
tiogrand has quit [Ping timeout: 245 seconds]
tiogrand__ has joined #ruby
tiogrand_ has quit [Ping timeout: 252 seconds]
faitswulff has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
teclator has joined #ruby
laaron has quit [Remote host closed the connection]
saysjonathan has joined #ruby
ubuntuisloved has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Bish>
kke: haha, that's good to know
Nattyfries66 has left #ruby [#ruby]
Macrobiotic has joined #ruby
ubuntuisloved has joined #ruby
faitswulff has quit [Remote host closed the connection]
faitswulff has joined #ruby
crankharder has joined #ruby
<Bish>
what's even to_hash isn't that to_h?
mangold has joined #ruby
xrexeon has joined #ruby
BH23 has joined #ruby
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
themsay has quit [Read error: Connection reset by peer]
xaxisx has joined #ruby
_joes_ has joined #ruby
themsay has joined #ruby
BH23 has quit [Quit: Leaving]
tau has joined #ruby
memofun has joined #ruby
spacesuitdiver has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tau has quit [Remote host closed the connection]
tau has joined #ruby
spacesuitdiver has quit [Ping timeout: 252 seconds]
esrse has quit [Ping timeout: 252 seconds]
andikr has quit [Remote host closed the connection]
am0123 has joined #ruby
<kke>
does not require **options either. this does the same: def display(*items, color: false) if you call that with something like display(item_that_has_to_hash) you will get ArgumentError unknown keyword arguments: x, y, z
<kke>
Bish: there are lots of those, the short versions are explicit, and long versions are implicit. (to_h, to_hash, to_a, to_ary, to_s, to_str, to_i, to_int). the long version is supposed to be implemented in objects that can be converted back and forth i suppose.
jokester has quit [Ping timeout: 268 seconds]
tiogrand__ has quit [Remote host closed the connection]
tiogrand__ has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
xrexeon has quit [Ping timeout: 240 seconds]
Arkantos has joined #ruby
Rapture has joined #ruby
griffindy has joined #ruby
regedit has joined #ruby
ylshao has joined #ruby
johnny56_ has quit [Ping timeout: 272 seconds]
gnufied has joined #ruby
gnufied has quit [Read error: Connection reset by peer]
xrexeon has joined #ruby
uranoss has quit [Quit: Connection closed for inactivity]
memofun has quit [Ping timeout: 246 seconds]
navin has quit [Quit: Leaving]
mangold has joined #ruby
SeepingN has joined #ruby
luminousnine has quit [Ping timeout: 252 seconds]
_joes_ has quit [Quit: _joes_]
_joes_ has joined #ruby
jaddison has quit [Quit: jaddison]
segy has quit [Ping timeout: 246 seconds]
spacesuitdiver has joined #ruby
<Bish>
kke: ** should be used with super extra care either way
<Bish>
thanks for the enlightenment
<Bish>
on the long/short thing
segy has joined #ruby
gnufied has joined #ruby
snk has quit [Quit: issued !quit command]
luminousnine has joined #ruby
luminousnine has quit [Changing host]
luminousnine has joined #ruby
Inline has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
Vaevictus has joined #ruby
Vaevictus has left #ruby [#ruby]
faitswulff has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 245 seconds]
laaron has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lytol has joined #ruby
tdy1 has quit [Ping timeout: 272 seconds]
spacesuitdiver has joined #ruby
faitswulff has joined #ruby
rippa has joined #ruby
snk has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lytol has quit [Quit: lytol]
claudiuinberlin has joined #ruby
imadper has quit [Remote host closed the connection]
imadper has joined #ruby
faitswulff has quit [Remote host closed the connection]
ylshao has quit [Ping timeout: 246 seconds]
Dbugger has joined #ruby
faitswulff has joined #ruby
johnny56_ has joined #ruby
orbyt_ has joined #ruby
ylshao has joined #ruby
orbyt_ has quit [Ping timeout: 246 seconds]
conta has quit [Ping timeout: 268 seconds]
xrexeon has quit [Ping timeout: 246 seconds]
jokester has joined #ruby
ylshao has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
bmurt has joined #ruby
AJA4351 has joined #ruby
spacesuitdiver has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
ylshao has joined #ruby
ylshao has quit [Ping timeout: 268 seconds]
za1b1tsu has quit [Remote host closed the connection]
orbyt_ has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
ylshao has joined #ruby
ylshao has quit [Ping timeout: 255 seconds]
orbyt_ has quit [Ping timeout: 255 seconds]
orbyt_ has joined #ruby
jaddison has joined #ruby
BrianWGray has joined #ruby
kapil____ has joined #ruby
vondruch has joined #ruby
ski4x7 has quit [Remote host closed the connection]
vondruch has quit [Client Quit]
ski7777 has joined #ruby
vondruch has joined #ruby
dar123 has joined #ruby
ylshao has joined #ruby
nowhere_man has joined #ruby
SeepingN has quit [Ping timeout: 250 seconds]
aufi has quit [Ping timeout: 246 seconds]
vondruch has quit [Client Quit]
vondruch has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
ylshao has quit [Ping timeout: 250 seconds]
polishdub has joined #ruby
tau has quit [Quit: ;~]
ua has quit [Excess Flood]
Devalo has joined #ruby
tdy1 has joined #ruby
grilix has joined #ruby
_joes_ has quit [Ping timeout: 272 seconds]
stryek has joined #ruby
ylshao has joined #ruby
code_zombie has joined #ruby
ylshao has quit [Ping timeout: 246 seconds]
ua has joined #ruby
sagax has quit [Remote host closed the connection]
za1b1tsu has quit [Remote host closed the connection]
[Butch] has quit [Read error: Connection reset by peer]
laaron has joined #ruby
[Butch] has joined #ruby
Sina has quit [Quit: Connection closed for inactivity]
ylshao has joined #ruby
mangold has joined #ruby
ylshao has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
PepeLePewPew has joined #ruby
orbyt_ has joined #ruby
<kaleido>
how can i check if a variable is a number(any number)? i tried "if variable = ([0-9]+)"
<kaleido>
but it isn't appreciating that
<kaleido>
for probably an obvious reason that i don't get
Caeso has quit [Read error: Connection reset by peer]
Caeso has joined #ruby
eddof13 has quit [Quit: eddof13]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
ylshao has joined #ruby
<PepeLePewPew>
O
<phaul>
kaleido: for a start = is assignment == is equality check. Further more numbers are not strings. and they not match string wise
<PepeLePewPew>
Oops, I'm trying to build a centos7 based docker container and use the latest version of ruby. I'm having a frustrating time trying to get this image to build using rbenv or rvm to get it installed. Is there a 3rd party package repo I can just install the latest packages from?
<PepeLePewPew>
i'd much rather just use yum after setting up a repo :)
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Caeso has joined #ruby
laaron- has joined #ruby
jaddison has joined #ruby
laaron has quit [Remote host closed the connection]
<phaul>
&fake TvShows::TheITCrowd.quote
<rubydoc>
Roy, I spoke to the Elders of the Internet not one hour ago. I told them about Jen winning Employee of the Month and they were so impressed that they wanted to do whatever they could to help.
AnomalyXII has joined #ruby
Swyper has joined #ruby
ylshao has joined #ruby
SanguineAnomaly has quit [Ping timeout: 252 seconds]
tiogrand__ has quit [Ping timeout: 255 seconds]
TomyWork has quit [Remote host closed the connection]
ylshao has quit [Ping timeout: 272 seconds]
mangold has quit [Quit: This computer has gone to sleep]
faitswulff has quit [Remote host closed the connection]
faitswulff has joined #ruby
Devalo has quit [Remote host closed the connection]
mangold has joined #ruby
galaxie has joined #ruby
cnsvc has joined #ruby
faitswulff has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
ylshao has joined #ruby
cnsvc has quit [Client Quit]
faitswulff has joined #ruby
e2 has quit [Read error: Connection reset by peer]
Fusl has quit [Ping timeout: 256 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
faitswulff has quit [Remote host closed the connection]
ylshao has quit [Ping timeout: 240 seconds]
Fusl has joined #ruby
faitswulff has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
Swyper has quit [Remote host closed the connection]
<rockandska>
leftylink: thanks, seems near from what i'm looking for, just need to see how to get only the method name without the first par 'script: in '
ylshao has joined #ruby
sandfish has joined #ruby
TomyLobo has quit [Quit: Leaving]
ylshao has quit [Ping timeout: 252 seconds]
faitswulff has quit []
<leftylink>
rockandska: ah I see. In that case, I actually aven't looked into this personally but it looks like caller_locations might be promising
<rockandska>
leftylink: caller_locations seems to give me a similar output
ubuntuisloved has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]