Guest75385 has quit [Remote host closed the connection]
imode has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
yokel has quit [Ping timeout: 240 seconds]
Grios has joined #ruby
duckpupp- has joined #ruby
yokel has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
Ediz has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
akemhp has joined #ruby
BSaboia has joined #ruby
yokel has joined #ruby
wallace_mu has joined #ruby
wallace_mu has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
braincrash has joined #ruby
yokel has joined #ruby
ellcs has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
tsujp14 has joined #ruby
<tsujp14>
how can I use rspec to test that a class is indeed abstract?
yokel has quit [Ping timeout: 265 seconds]
yokel has joined #ruby
ctOS has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
alexherbo23 has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo23 is now known as alexherbo2
yokel has quit [Ping timeout: 256 seconds]
tsujp14 has quit [Remote host closed the connection]
kinduff has quit [Quit: Ping timeout (120 seconds)]
kinduff has joined #ruby
itok has quit [Ping timeout: 244 seconds]
Phoebus has quit [Ping timeout: 244 seconds]
nofxx__ has joined #ruby
SoF has quit [Quit: Ping timeout (120 seconds)]
ur5us has quit [Read error: Connection reset by peer]
redlegion has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
iNs has quit [Quit: bubye]
meinside has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
jrhorn424 has quit [Ping timeout: 240 seconds]
darthThorik has quit [Ping timeout: 240 seconds]
SoF has joined #ruby
iNs has joined #ruby
Phoebus has joined #ruby
MentalPower has quit [Ping timeout: 244 seconds]
fowl has quit [Ping timeout: 244 seconds]
meinside has joined #ruby
redlegion has joined #ruby
darthThorik has joined #ruby
MentalPower has joined #ruby
itok has joined #ruby
jrhorn424 has joined #ruby
fowl has joined #ruby
nofxx_ has quit [Ping timeout: 240 seconds]
<jhass>
Ruby has no abstract classes
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
<jhass>
tsujp: so what's an abstract class in this context?
yokel has quit [Ping timeout: 265 seconds]
Rudd0 has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
ldl has quit [Quit: Leaving]
yokel has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
ellcs has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
dasher00 has joined #ruby
alfiemax has joined #ruby
kintarowonders has joined #ruby
<kintarowonders>
I am actually learning Rust, but the book wants me to use Rust from Ruby, which I do not know. The problem I have is that the Ruby code in the book does not work. It is telling me a few things.
<kintarowonders>
First: embed.rb:4: class/module name must be CONSTANT
<ruby[bot]>
kintarowonders: 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
<kintarowonders>
Oh, the book is translated from Spanish and the translator does not know how to code. So they have followed sentence structure differences mindlessly. Thanks!
<jhass>
don't put spaces in front of the : of a :symbol_literal
<jhass>
so ": process" -> ":process
<jhass>
and it's probably valid syntax, but to be safe "Hello .process" -> "Hello.process"
<kintarowonders>
kernel_require.rb:83:in `require': cannot load such file -- ffi (LoadError)
<jhass>
gem install ffi
<jhass>
it doesn't come with ruby
<kintarowonders>
it would not install as the user i was running ruby as, so i installed ffi as root
<kintarowonders>
is that a problem?
yokel has quit [Ping timeout: 244 seconds]
wallace_mu has quit [Ping timeout: 260 seconds]
xco has joined #ruby
<kintarowonders>
ah just needed to `gem install bundler`
<jhass>
shouldn't be much of a problem, beyond having stuff outside your home not managed by your OSes package manager, which some people dislike :)
<jhass>
not sure why you'd need bundler here, but sure if it helps
ellcs has joined #ruby
sarna has joined #ruby
sarna has quit [Client Quit]
dfucci has quit [Ping timeout: 265 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
yokel has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.9]
alexherbo2 has quit [Ping timeout: 256 seconds]
johnnnnnnnnn has joined #ruby
<johnnnnnnnnn>
how can you add a ! method to String that modifies/mutates the string? Is it possible just in ruby without a c ext?
alexherbo2 has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
Mia has quit [Write error: Connection reset by peer]
alexherbo2 has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
drincruz has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
alfiemax has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 244 seconds]
drincruz has quit [Ping timeout: 240 seconds]
Ediz has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
supercoven has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
Ediz has joined #ruby
Ediz is now known as Guest31757
<jhass>
johnnnnnnnnn: yes if the modification is expressable in already existing self-modifying methods
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest31757 has quit [Quit: Leaving]
cow[moo] has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
TCZ has joined #ruby
cow[moo] has quit [Client Quit]
bmurt has joined #ruby
drincruz has joined #ruby
yokel has joined #ruby
ellcs has joined #ruby
cow[moo] has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
yokel has quit [Ping timeout: 258 seconds]
meinside has quit [Quit: Connection closed for inactivity]
bmurt has quit [Ping timeout: 240 seconds]
dfucci has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallace_mu has joined #ruby
cow[moo] has joined #ruby
ellcs has quit [Ping timeout: 244 seconds]
wallace_mu has quit [Ping timeout: 246 seconds]
weaksauce has quit [Ping timeout: 240 seconds]
<johnnnnnnnnn>
jhass: ah, I suppose I could use gsub! to do nearly anything. thanks
vondruch has joined #ruby
alexherbo2 has joined #ruby
donofrio has joined #ruby
yokel has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
hiroaki has quit [Ping timeout: 256 seconds]
leitz has joined #ruby
gthank has joined #ruby
gthank has quit [Read error: Connection reset by peer]
wallace_mu has joined #ruby
dualfade has quit [Read error: Connection reset by peer]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
hiroaki has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
dualfade has joined #ruby
ChmEarl has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
johnnnnnnnnn has quit [Remote host closed the connection]
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
va5c0 has joined #ruby
akemhp_ has joined #ruby
akemhp has quit [Ping timeout: 265 seconds]
TCZ has quit [Quit: Leaving]
yokel has joined #ruby
MrCrackPot has joined #ruby
MrCrackPot has quit [Client Quit]
yokel has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
TCZ has joined #ruby
yokel has quit [Ping timeout: 258 seconds]
proc has joined #ruby
<proc>
https://paste.ubuntu.com/p/HP6bM9c7Dg/ - the 'tries' part doesn't seem to work, or do anything. basically, start_edit_queue processes everything in @edits. if a particular edit causes issue, I want to retry 3x or remove it and go on
BSaboia has quit [Quit: Leaving]
<proc>
IDE suggests 'tries' isn't being assigned a value on lines 10, 12, so guessing it's a scoping obscurity I'm not sure of?
vondruch_ has joined #ruby
yokel has joined #ruby
vondruch has quit [Ping timeout: 264 seconds]
vondruch_ is now known as vondruch
m27frogy has quit [Ping timeout: 258 seconds]
m27frogy has joined #ruby
<jhass>
proc: well, how do you actuall jump back to begin?
<proc>
oh
<proc>
yeah...
<jhass>
you gonna love the retry keyword :)
yokel has quit [Ping timeout: 256 seconds]
<proc>
oh wow, this is nifty
<proc>
thanks!
<jhass>
yw
<proc>
sidenote, if I'm parsing "January 1985", ruby's Date.parse gives me 1 January 1985. any way to find out that this is a 'defaulted' 1, and not an actual 1st of the month?
<proc>
basically some way to know it wasn't actually a parsing of "1 January 1985", other than by doing regex on my input string?
roadt_ is now known as roadt
dionysus69 has joined #ruby
yokel has joined #ruby
ropeney has quit [Ping timeout: 260 seconds]
dfucci has quit [Ping timeout: 264 seconds]
MrCrackPot has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
<jhass>
is your input string that free form and without an enforced format?
<jhass>
Date.parse is generally discouraged because it has to guess that much
<jhass>
I'd see if you can use strptime, maybe trying a couple of formats after each other. Then you'll have that information contextually by knowing which format parsed
stryek has quit [Quit: Connection closed for inactivity]
teardown has joined #ruby
teardown has quit [Read error: Connection reset by peer]
istrasci has joined #ruby
<istrasci>
What exactly is Float::NAN? Why does `Float::NAN == Float::NAN` give false?
Iarfen has quit [Remote host closed the connection]
yokel has joined #ruby
sh7d has quit [Ping timeout: 260 seconds]
sh7d has joined #ruby
teardown has joined #ruby
teardown has quit [Read error: Connection reset by peer]
yokel has quit [Ping timeout: 256 seconds]
teardown has joined #ruby
teardown has quit [Read error: Connection reset by peer]
elcuervo has quit [Ping timeout: 260 seconds]
<havenwood>
istrasci: It's from the IEEE standard NaN: "NaN: not a number—a symbolic floating-point datum."
alexherbo2 has joined #ruby
<istrasci>
havenwood: Yes, conceptually I understand it. I guess I'm asking about its object structure. Why does the identity == return false? Is there some sort of unique timestamp or hash value that it receives each time you reference it?
<havenwood>
istrasci: There are a variety of operations you can't do with Floats where the standard says to return NaN. One NaN isn't equal to another NaN since they represent something like an overflow.
<havenwood>
&>> Float::Infinity - Float::Infinity
<rubydoc>
stderr: -e:4:in `<main>': uninitialized constant Float::Infinity (NameError)... check link for more (https://carc.in/#/r/9pf5)