christiandsg has quit [Remote host closed the connection]
emptyfl4sk has joined #ruby
asprillia has joined #ruby
sarink has joined #ruby
matheusmoreira has quit [Ping timeout: 245 seconds]
matheusmoreira has joined #ruby
moei has joined #ruby
emptyfl4sk has quit [Ping timeout: 258 seconds]
sarink has quit [Remote host closed the connection]
shakes has joined #ruby
shakes has quit [Client Quit]
shakes has joined #ruby
sarink has joined #ruby
sarink_ has joined #ruby
sarink has quit [Read error: Connection reset by peer]
renich has quit [Remote host closed the connection]
sarink_ has quit [Remote host closed the connection]
shakes has quit [Quit: Leaving]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
emptyfl4sk has joined #ruby
chalkmonster has quit [Ping timeout: 245 seconds]
sarink has joined #ruby
asprillia has quit [Quit: Leaving.]
asprillia has joined #ruby
emptyfl4sk has quit [Ping timeout: 245 seconds]
asprillia has quit [Ping timeout: 248 seconds]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
ellcs has quit [Ping timeout: 252 seconds]
ellcs has joined #ruby
sarink has quit [Remote host closed the connection]
u0_a238 has quit [Quit: leaving]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vjacob has quit [Ping timeout: 268 seconds]
sarink has joined #ruby
lepepe has quit [Remote host closed the connection]
sarink has quit [Remote host closed the connection]
DTZUZO has joined #ruby
matheusmoreira has quit [Remote host closed the connection]
matheusmoreira has joined #ruby
sarink has joined #ruby
dbugger has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
dbugger has quit [Remote host closed the connection]
sarink has joined #ruby
dbugger has joined #ruby
NikhilSinghal has quit [Ping timeout: 250 seconds]
matheusmoreira has quit [Ping timeout: 246 seconds]
sarink has quit []
matheusmoreira has joined #ruby
fphilipe_ has joined #ruby
fphilipe_ has quit [Ping timeout: 268 seconds]
kyrylo has joined #ruby
[ is now known as uplime
sandstrom has joined #ruby
dellavg_ has joined #ruby
absolutejam4 has joined #ruby
dviola has quit [Quit: WeeChat 2.5]
emptyfl4sk has joined #ruby
emptyfl4sk has quit [Ping timeout: 244 seconds]
absolutejam4 has quit [Ping timeout: 268 seconds]
matheusmoreira has quit [Ping timeout: 248 seconds]
matheusmoreira has joined #ruby
sarink has joined #ruby
suukim has joined #ruby
queip has quit [Ping timeout: 245 seconds]
asprillia has joined #ruby
asprillia has left #ruby [#ruby]
mistergibson has quit [Quit: Leaving]
queip has joined #ruby
_whitelogger has joined #ruby
twe4ked has quit [Ping timeout: 276 seconds]
_whitelogger has joined #ruby
twe4ked has joined #ruby
matheusmoreira has quit [Ping timeout: 248 seconds]
Joufflu has joined #ruby
matheusmoreira has joined #ruby
fphilipe_ has joined #ruby
xco has joined #ruby
fphilipe_ has quit [Ping timeout: 268 seconds]
emptyfl4sk has joined #ruby
emptyfl4sk has quit [Ping timeout: 268 seconds]
Freshnuts has quit [Ping timeout: 272 seconds]
Freshnuts has joined #ruby
lepepe has joined #ruby
lepepe has quit [Ping timeout: 246 seconds]
stooj has quit [Read error: Connection reset by peer]
stooj has joined #ruby
matheusmoreira has quit [Ping timeout: 268 seconds]
matheusmoreira has joined #ruby
mniip has quit [Ping timeout: 600 seconds]
fphilipe_ has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
fphilipe_ has quit [Ping timeout: 258 seconds]
Nicmavr has joined #ruby
unreal has quit [Ping timeout: 248 seconds]
unreal has joined #ruby
lepepe has joined #ruby
akem_lnvo has joined #ruby
ellcs has quit [Ping timeout: 248 seconds]
lepepe has quit [Ping timeout: 272 seconds]
Freshnuts has quit [Quit: Leaving]
matheusm1reira has joined #ruby
matheusmoreira has quit [Ping timeout: 258 seconds]
emptyfl4sk has joined #ruby
<akem_lnvo>
Hey, is it possible for ruby to detect this syntax error without calling the method: https://pastebin.com/hc6KNbmj
<ruby[bot]>
akem_lnvo: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
Inline_ has joined #ruby
<akem_lnvo>
If i just do ruby "test.rb" or -wc, ruby say the syntax is fine, but it doesn't detect the "qsdsqd".
emptyfl4sk has quit [Ping timeout: 272 seconds]
Inline has quit [Ping timeout: 252 seconds]
Inline_ has quit [Quit: Leaving]
vjacob has joined #ruby
Inline has joined #ruby
<leftylink>
well indeed, because it is not a syntax error. there could very well be a function named qsdsqd, which would then be called
<leftylink>
for this sort of thing to be detected beforehand, that sounds more like the job of a type checker or something similar
_whitelogger has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
dbugger has quit [Ping timeout: 252 seconds]
absolutejam4 has joined #ruby
dbugger has joined #ruby
loseyourmind has joined #ruby
loseyourmind has left #ruby [#ruby]
loseyourmind has joined #ruby
loseyourmind has left #ruby [#ruby]
loseyourmind has joined #ruby
loseyourmind has left #ruby [#ruby]
matheusm1reira has quit [Ping timeout: 258 seconds]
Fernando-Basso has joined #ruby
matheusmoreira has joined #ruby
leitz has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
<leitz>
class A has getter and setter methods. Other methods are needed to generate what the getters receive. Should the "generators" go into class A itself or into a factory?
sarink_ has joined #ruby
sarink has quit [Read error: Connection reset by peer]
vjacob has quit [Read error: Connection reset by peer]
eject_ck has joined #ruby
<eject_ck>
Hi guys, I'm srruggling to convert my string '05/Jul/2019:14:39:31.452' to datetime object. Then I will be able to convert it with something like DateTime.strftime(mydate, '%d/%b/%Y:%H:%M:%S.%3N')
<leftylink>
I hope that strptime is able to help in this instance
<eject_ck>
for DateTime.strptime it's not an issue
ua_ has quit [Ping timeout: 245 seconds]
<eject_ck>
my problem is to get string parsed
sarink_ has quit [Read error: Connection reset by peer]
<leftylink>
isn't that exactly what strptime does? to parse?
sarink has joined #ruby
<leftylink>
hmm
<leftylink>
I don' tknow what the p stands for
<eject_ck>
got it working
<eject_ck>
thansk!
<eject_ck>
thanks!
absolutejam4 has quit [Ping timeout: 258 seconds]
bhaak has quit [Ping timeout: 252 seconds]
eject_ck has left #ruby [#ruby]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ua has joined #ruby
matheusmoreira has quit [Ping timeout: 268 seconds]
matheusmoreira has joined #ruby
eject_ck has joined #ruby
<eject_ck>
with DateTime.strptime , how can I parse microseconds ?
emptyfl4sk has joined #ruby
henninb has joined #ruby
henninb has quit [Client Quit]
henninb has joined #ruby
AJA4350 has joined #ruby
emptyfl4sk has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
TheMadDoc has joined #ruby
ur5us has joined #ruby
eject_ck has quit [Quit: Leaving.]
TheMadDoc has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 268 seconds]
henninb has quit [Quit: leaving]
henninb has joined #ruby
henninb has quit [Client Quit]
henninb has joined #ruby
henninb has quit [Client Quit]
falconfox has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lepepe has joined #ruby
absolutejam4 has joined #ruby
matheusmoreira has quit [Ping timeout: 258 seconds]
matheusmoreira has joined #ruby
lepepe has quit [Ping timeout: 268 seconds]
sandstrom has joined #ruby
absolutejam4 has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
lightstalker has quit [Ping timeout: 268 seconds]
Inline_ has joined #ruby
davor has quit [Ping timeout: 245 seconds]
Inline has quit [Ping timeout: 252 seconds]
involans has joined #ruby
davor has joined #ruby
kyrylo has joined #ruby
cd has joined #ruby
involans has quit [Quit: involans]
<akem_lnvo>
leftylink, about that type checker thing, is ruby by itself not able to find out the function is not defined and throw the error after parsing the file or something? because if i'm calling the function explicitly it will throw the error that the function does not exist.
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
sandstrom has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
sandstrom has joined #ruby
jrafanie has joined #ruby
xco has quit [Quit: xco]
jrafanie has quit [Ping timeout: 248 seconds]
xco has joined #ruby
lightstalker has joined #ruby
bhaak has joined #ruby
akem-lnvo has joined #ruby
akem_lnvo has quit [Ping timeout: 245 seconds]
akem-lnvo has quit [Ping timeout: 246 seconds]
akem-lnvo has joined #ruby
matheusmoreira has quit [Ping timeout: 245 seconds]
akem_lnvo has joined #ruby
akem-lnvo has quit [Ping timeout: 258 seconds]
emptyfl4sk has joined #ruby
matheusmoreira has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
fuzzface has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
mniip has joined #ruby
sandstrom has joined #ruby
sandstrom has quit [Ping timeout: 245 seconds]
fuzzface has quit [Quit: Leaving]
jaequery has joined #ruby
jaequery has quit [Client Quit]
emptyfl4sk has quit [Ping timeout: 246 seconds]
Swyper has quit [Remote host closed the connection]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
ovnimancer has joined #ruby
fuzzface has joined #ruby
matheusmoreira has quit [Ping timeout: 246 seconds]
matheusmoreira has joined #ruby
sandstrom has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
emptyfl4sk has joined #ruby
leitz has quit [Quit: Leaving]
henninb has joined #ruby
henninb has quit [Client Quit]
emptyfl4sk has quit [Ping timeout: 272 seconds]
moriarty has joined #ruby
sandstrom has quit [Ping timeout: 248 seconds]
moriarty has left #ruby [#ruby]
emptyfl4sk has joined #ruby
Swyper has quit [Remote host closed the connection]
lepepe has joined #ruby
Swyper has joined #ruby
lepepe has quit [Ping timeout: 246 seconds]
lepepe has joined #ruby
lepepe has quit [Ping timeout: 258 seconds]
Swyper has quit [Remote host closed the connection]
megamos has quit [Ping timeout: 248 seconds]
ovnimancer has quit [Ping timeout: 272 seconds]
stooj has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
stooj has joined #ruby
<garyserj>
i have a method jkl that takes 3 parameters. I do jkl 3,4,{puts "x"} it gives an error. why?
matheusmoreira has quit [Ping timeout: 244 seconds]
matheusmoreira has joined #ruby
<phaul>
because {puts "x" } is not a parameter. it's a block. but that's normal value but special syntax
Swyper has quit [Remote host closed the connection]
<phaul>
and it's not counted in arity, has to be the last, and you can't put comma in front of it
<phaul>
so this would work jkl(3,4) { puts "x" }
<phaul>
arity is 2 and a block is additionally passed
kyrylo has joined #ruby
<garyserj>
do you always need parentheses around prior parameters?
<garyserj>
when passing a block
Swyper has joined #ruby
<phaul>
depends if you use the do end vs the braces syntax
<phaul>
do end doesn't iirc
<garyserj>
ok, thanks
<phaul>
yw
AJA4350 has quit [Quit: AJA4350]
emptyflask has joined #ruby
falconfox has quit [Ping timeout: 268 seconds]
emptyfl4sk has quit [Ping timeout: 272 seconds]
Inline_ has quit [Quit: Leaving]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Inline has joined #ruby
Swyper has joined #ruby
orbyt_ has joined #ruby
lepepe has joined #ruby
Swyper has quit [Remote host closed the connection]
<garyserj>
I have def abc. when I call it, this doesn't give an error abc do puts blahrandom end any idea why?
Swyper has joined #ruby
<garyserj>
blahrandom could be asfsdfd just a non-existant variable
<garyserj>
I guess it only becomes an error when it runs
<garyserj>
yeah, i see now, only an error when it runs so when i do yield
<phaul>
you can pass a block to anything, they might just ignore it.
Swyper has quit [Remote host closed the connection]
gix- has quit [Ping timeout: 246 seconds]
tpanarch1st has joined #ruby
chalkmonster has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
matheusmoreira has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
matheusmoreira has joined #ruby
lepepe has quit [Ping timeout: 246 seconds]
sandstrom has joined #ruby
cow[moo] has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reber has quit [Ping timeout: 245 seconds]
cow[moo] has joined #ruby
lepepe has joined #ruby
za1b1tsu has joined #ruby
orbyt_ has joined #ruby
reber has joined #ruby
falconfox has quit []
Swyper has quit [Remote host closed the connection]
menteb has joined #ruby
mniip has quit [Ping timeout: 615 seconds]
sylario has joined #ruby
menteb has left #ruby [#ruby]
sandstrom has quit [Ping timeout: 245 seconds]
Joufflu has quit [Ping timeout: 246 seconds]
mniip has joined #ruby
lepepe has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
Fusl has quit [Max SendQ exceeded]
reber has quit [Remote host closed the connection]
Fusl has joined #ruby
Swyper has quit [Remote host closed the connection]
lepepe has joined #ruby
absolutejam4 has joined #ruby
GodFather has joined #ruby
suukim has quit [Quit: Konversation terminated!]
Swyper has joined #ruby
lepepe has quit [Ping timeout: 244 seconds]
Joufflu has joined #ruby
matheusmoreira has quit [Ping timeout: 245 seconds]
matheusmoreira has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Joufflu has quit [Ping timeout: 244 seconds]
<garyserj>
if i have a method def abc x, and hash with more than one key-value pair, then let's say I want to do the call without parentheses, so I guess then a hash cannot then have curly braces? is it possible to pass the hash? abc "f":1 works, but abc "f":1,"g":2 and it thinks i'm passing multiple arguments. If I want to pass as one hash do I have to use {} and then have to use parentheses?