jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
jpn has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
moldorcoder7 has quit [Ping timeout: 260 seconds]
nirvdrum has quit [Quit: nirvdrum]
ur5us has joined #ruby
mikecmpbll has joined #ruby
nirvdrum has joined #ruby
nirvdrum has quit [Client Quit]
mikecmpbll has quit [Ping timeout: 252 seconds]
havenwood5 has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
havenwood5 is now known as havenwood
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
nirvdrum has joined #ruby
nirvdrum has quit [Client Quit]
jpn has quit [Ping timeout: 255 seconds]
ur5us has quit [Quit: Leaving]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
Linux_Kerio has joined #ruby
bougyman_ is now known as bougyman
jetchisel has quit [Ping timeout: 255 seconds]
jetchisel has joined #ruby
mikecmpbll has joined #ruby
entropie has quit [Quit: ""]
entropie has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
Guest34 has joined #ruby
nirvdrum has joined #ruby
_aeris_ has joined #ruby
aeris has quit [Ping timeout: 258 seconds]
_aeris_ is now known as aeris
nirvdrum has quit [Quit: nirvdrum]
teclator has joined #ruby
John_Ivan_ has quit [Ping timeout: 255 seconds]
Linux_Kerio has quit [Quit: Konversation terminated!]
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Client Quit]
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Quit: Konversation terminated!]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
Guest34 has quit [Quit: Client closed]
dionysus69 has joined #ruby
fercell has joined #ruby
jhawthorn has quit [Read error: Connection reset by peer]
Sankalp has quit [Ping timeout: 268 seconds]
Sankalp- has joined #ruby
jhawthorn has joined #ruby
Sankalp- is now known as Sankalp
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
Rounin has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
<mikecmpbll> mornin'
jpn has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
sphex has quit [Remote host closed the connection]
sphex has joined #ruby
cek has joined #ruby
<madprops> when I make unit tests with: class MyTest < Test::Unit::TestCase
<madprops> am i supposed to init an isntance of that class, or make it a static method?
<madprops> in the examples I see there's no `initialize`
<madprops> ohhh i see
<madprops> it runs automatically
<madprops> im surprised how ruby has a bunch of the stuff i liked on nim
jpn has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
username9431 has joined #ruby
jpn has joined #ruby
<adam12> mikecmpbll: Morning
<adam12> madprops: Yes. Minitest and Test::Unit use the at_exit hook to run the test suite.
matoro has quit [Ping timeout: 248 seconds]
matoro has joined #ruby
matoro has quit [Changing host]
matoro has joined #ruby
dionysus69 has joined #ruby
ferr_ has joined #ruby
fercell has quit [Ping timeout: 252 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
<madprops> is there a reason why exception catching is called begin rescue?
<madprops> i mean apart from just naming it that
<madprops> im guessing begin can be reused for other stuff
jetchisel has quit [Ping timeout: 255 seconds]
jetchisel has joined #ruby
protektwar has quit [Ping timeout: 268 seconds]
<adam12> madprops: Yes. You can use begin to collect statements into a single return value.
<adam12> ie. @some_value = being; multiple statements across multiple lines; end
<adam12> madprops: There's also ensure and else. Ensure being obvious the reason and else being super trippy.
<madprops> i see there's also BEGIN {} and END {}
<madprops> im trying to hit a case where i'd need beging to assign to a variable in a nested structure
<madprops> so far it works without it
<adam12> madprops: BEGIN and END are holdovers from Perl/Awk.
<madprops> haha yeah i thought of awk
<adam12> I generally don't see it much outside of oneliners.
<madprops> not sure how i'd send an anonymous function / lambda, to a function for callbacks
<madprops> i seen an example where you do a {..} outside the call which is weird
<madprops> so i tried: sum(1, 2, lambda {puts "123"})
<madprops> but the third var is not recognized
<adam12> What's the definition of `sum`?
<adam12> def sum(a, b, adder)?
<madprops> undefined method `callback'
<adam12> madprops: Ah. You can't call it like that, because of the design of the Ruby language.
<adam12> madprops: There's 3 (maybe more) ways of calling it tho, so you can take your pick.
<adam12> madprops: callback.call, callback.(), callback[]
<madprops> ok that kinda makes sense
<madprops> callback.call at least
<adam12> Yeah. The third option is a neat one to simulate UCFS? If I'm remembering that acronym right.
<adam12> users["adam12"] could be either a Hash lookup, an Array lookup, or an object that responds to #call which will do something to get a value for that key.
<adam12> So in some cases, the square bracket call syntax is nice.
<madprops> adam12, what do you think of crystal, is it worth learning a bit of that?
<madprops> i really like ruby's syntax
<madprops> sometimes i like to make fast binaries though
<madprops> for that i use nim
_aeris_ has joined #ruby
aeris has quit [Remote host closed the connection]
_aeris_ is now known as aeris
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
dionysus70 is now known as dionysus69
<adam12> madprops: I like Crystal.
John_Ivan_ has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
oxfuxxx has joined #ruby
shiru has joined #ruby
shiru has quit [Client Quit]
artemis has joined #ruby
nirvdrum has joined #ruby
oxfuxxx has quit [Ping timeout: 244 seconds]
vito has quit [Ping timeout: 240 seconds]
artemis has quit [Ping timeout: 244 seconds]
vito has joined #ruby
TomyWork has joined #ruby
JSharp has quit [Ping timeout: 268 seconds]
pjlsergeant has quit [Ping timeout: 268 seconds]
JSharp has joined #ruby
pjlsergeant has joined #ruby
fercell has joined #ruby
arahael has quit [Ping timeout: 268 seconds]
ferr_ has quit [Ping timeout: 252 seconds]
desnudopenguino has quit [Ping timeout: 244 seconds]
arahael has joined #ruby
protektwar has quit [Ping timeout: 268 seconds]
kristianpaul has joined #ruby
<kristianpaul> o/
<mikecmpbll> \o
nirvdrum has quit [Quit: nirvdrum]
<kristianpaul> Whats the correct way of including a shared library file?
<kristianpaul> May i use the fullpath or need to copy it somwhere in the gem path directory?
<mikecmpbll> a ruby shared library?
<kristianpaul> something.so file, its provided from a vendor i cant compile ..
<mikecmpbll> ah okay. i don't have much experience working with C shared libraries, so, "pass" from me :)
desnudopenguino has joined #ruby
<adam12> kristianpaul: Are you writing bindings for it using Fiddle?
<kristianpaul> nope?
<adam12> kristianpaul: How are you interacting with it
<adam12> (or planning tto)
<kristianpaul> require 'gem_name"
<kristianpaul> it worked before for ruby 2.7.0 when under /usr/lib/ruby/vendor_ruby/2.7.0/
<kristianpaul> i just added it to the GEM_PATH but
<jhass[m]> So the vendor supplied this specifically for use with Ruby?
<kristianpaul> i switched to ruby 2.7.4 installed by rvm and then got lost trying to use it..
<kristianpaul> jhass[m]: thats correct
<adam12> kristianpaul: Technically you could probably just `require_relative "your_so_file"`
<jhass[m]> What ruby version they supplied this for?
<adam12> But Ruby will look in $LOAD_PATH for .rb files, and .so files.
<kristianpaul> jhass[m]: 2.7.0
<adam12> I don't get how you're interacting with it outside of a FFI interface tho...
<jhass[m]> adam12: sound's like it's an already compiled native ext to me
<adam12> jhass[m]: Linked against libruby.a maybe?
<jhass[m]> kristianpaul: so is require_relative working, if not, how does it fail?
<adam12> jhass[m]: I forgot that you can write Ruby C functions and skip the FFI.
<jhass[m]> yeah you can just load an SO and in it's main call rb_define_method or whatever the C API was
<kristianpaul> jhass[m] its failing
<jhass[m]> it's how native extensions work
<kristianpaul> jhass[m]: `require_relative': libruby-2.7.so.2.7: cannot open shared object file: No such file or directory - /usr/lib/ruby/vendor_ruby/2.7.0/mypdf.so
<jhass[m]> (or most of Ruby's C stdlib really)
<kristianpaul> but thats the path..
<kristianpaul> full path
<jhass[m]> what's ldd /usr/lib/ruby/vendor_ruby/2.7.0/mypdf.so saying? (-> gist)
<kristianpaul> ahh libruby-2.7.so.2.7 => not found
arahael has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
arahael has joined #ruby
nirvdrum has joined #ruby
oxfuxxx has joined #ruby
artemis has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
oxfuxxx has quit [Ping timeout: 268 seconds]
oxfuxxx has joined #ruby
artemis has quit [Ping timeout: 252 seconds]
_ht has joined #ruby
artemis has joined #ruby
artemis has quit [Client Quit]
artemis has joined #ruby
oxfuxxx has quit [Ping timeout: 244 seconds]
eddof13 has joined #ruby
artemis has quit [Ping timeout: 244 seconds]
Linux_Kerio has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
victori has quit [Ping timeout: 248 seconds]
aandre has quit [Changing host]
aandre has joined #ruby
hightower2 has joined #ruby
nirvdrum has joined #ruby
oxfuxxx has joined #ruby
artemis has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
hightower2 has quit [Remote host closed the connection]
oxfuxxx has quit [Ping timeout: 252 seconds]
oxfuxxx has joined #ruby
artemis has quit [Ping timeout: 252 seconds]
axisys has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
aeris has quit [Ping timeout: 258 seconds]
aeris has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
axisys has quit [Remote host closed the connection]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
Vintal has joined #ruby
oxfuxxx has quit [Ping timeout: 268 seconds]
oxfuxxx has joined #ruby
artemis has joined #ruby
oxfuxxx has quit [Ping timeout: 244 seconds]
gschanuel has quit [Ping timeout: 252 seconds]
protektwar has quit [Ping timeout: 268 seconds]
Vintal has quit [Remote host closed the connection]
libsys has quit [Ping timeout: 260 seconds]
libsys has joined #ruby
Furai has quit [Quit: WeeChat 3.6]
Furai has joined #ruby
nirvdrum has joined #ruby
ferr_ has joined #ruby
mahlon has quit [Quit: PotatoTech]
fercell has quit [Ping timeout: 255 seconds]
Tomte has joined #ruby
Tomte has quit [Remote host closed the connection]
mahlon has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
CrazyEddy has quit [Ping timeout: 255 seconds]
nirvdrum has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
TomyWork has quit [Remote host closed the connection]
_ht has quit [Quit: _ht]
jpn has joined #ruby
cek has quit [Quit: Connection closed for inactivity]
jpn has quit [Ping timeout: 252 seconds]
username9431 has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
arahael has quit [Ping timeout: 255 seconds]
artemis has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 252 seconds]
arahael has joined #ruby
Linux_Kerio has quit [Quit: Konversation terminated!]
oxfuxxx has joined #ruby
jpn has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
pgib has joined #ruby
victori has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ur5us has joined #ruby
arahael has quit [Ping timeout: 252 seconds]
cocalero has joined #ruby
cocalero_ has joined #ruby
cocalero_ has quit [Client Quit]
arahael has joined #ruby
arahael has quit [Ping timeout: 268 seconds]
adam126 has joined #ruby
graemefawcett_ has joined #ruby
Bounga_ has joined #ruby
patrick_ has joined #ruby
g_sg_ has joined #ruby
srushe_ has joined #ruby
tsujp_ has joined #ruby
matta_ has joined #ruby
caleb_ has joined #ruby
KOTP_ has joined #ruby
alexisg_ has joined #ruby
hwrd_ has joined #ruby
seisatsu_ has joined #ruby
llua` has joined #ruby
integral_ has joined #ruby
phenom_ has joined #ruby
phryk_ has joined #ruby
Ca1us has joined #ruby
cyj123_ has joined #ruby
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
quintasan_ has joined #ruby
cocalero has joined #ruby
Artea has quit [Quit: ZNC 1.6.2 - http://znc.in]
jimeh_ has joined #ruby
jhass- has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhass has quit [Ping timeout: 244 seconds]
seisatsu has quit [Ping timeout: 244 seconds]
integral has quit [Ping timeout: 244 seconds]
tsujp has quit [Ping timeout: 244 seconds]
graemefawcett has quit [Ping timeout: 244 seconds]
madprops has quit [Ping timeout: 244 seconds]
Caius has quit [Ping timeout: 244 seconds]
phenom has quit [Ping timeout: 244 seconds]
hwrd has quit [Ping timeout: 244 seconds]
matta has quit [Ping timeout: 244 seconds]
srushe has quit [Ping timeout: 244 seconds]
gr33n7007h has quit [Ping timeout: 244 seconds]
leah2 has quit [Ping timeout: 244 seconds]
alexisg has quit [Ping timeout: 244 seconds]
scriptonaut has quit [Ping timeout: 244 seconds]
KOTP has quit [Ping timeout: 244 seconds]
rapha has quit [Ping timeout: 244 seconds]
Al2O3 has quit [Ping timeout: 244 seconds]
devz3ro has quit [Ping timeout: 244 seconds]
swaggboi has quit [Ping timeout: 244 seconds]
cyj123 has quit [Ping timeout: 244 seconds]
g_sg has quit [Ping timeout: 244 seconds]
caleb has quit [Ping timeout: 244 seconds]
patrick has quit [Ping timeout: 244 seconds]
Bounga has quit [Ping timeout: 244 seconds]
jimeh has quit [Ping timeout: 244 seconds]
peder has quit [Ping timeout: 244 seconds]
quintasan has quit [Ping timeout: 244 seconds]
adam12 has quit [Ping timeout: 244 seconds]
llua has quit [Ping timeout: 244 seconds]
phryk has quit [Ping timeout: 244 seconds]
gr33n7007h has joined #ruby
thomas25 has quit [Ping timeout: 244 seconds]
jhass- is now known as jhass
seisatsu_ is now known as seisatsu
tsujp_ is now known as tsujp
hwrd_ is now known as hwrd
srushe_ is now known as srushe
alexisg_ is now known as alexisg
Bounga_ is now known as Bounga
graemefawcett_ is now known as graemefawcett
matta_ is now known as matta
g_sg_ is now known as g_sg
caleb_ is now known as caleb
cyj123_ is now known as cyj123
KOTP_ is now known as KOTP
integral_ is now known as integral
integral has quit [Changing host]
integral has joined #ruby
thomas25 has joined #ruby
devz3ro has joined #ruby
Al2O3 has joined #ruby
adam126 is now known as adam12
peder has joined #ruby
donofrio_ has joined #ruby
llua` is now known as llua
madprops has joined #ruby
madprops has quit [Changing host]
madprops has joined #ruby
jimeh_ is now known as jimeh
donofrio__ has quit [Ping timeout: 268 seconds]
arahael has joined #ruby
scriptonaut has joined #ruby
swaggboi has joined #ruby
leah2 has joined #ruby
rapha has joined #ruby
rapha has quit [Changing host]
rapha has joined #ruby
arahael has quit [Ping timeout: 240 seconds]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
cognemo has quit [Quit: ZNC 1.8.2 - https://znc.in]
nirvdrum has joined #ruby
cognemo has joined #ruby
cocalero has joined #ruby
arahael has joined #ruby
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Linux_Kerio has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.6]
gr33n7007h has joined #ruby
eddof13 has joined #ruby
Linux_Kerio has quit [Quit: Konversation terminated!]
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Client Quit]
Linux_Kerio has joined #ruby
pgib has quit [Ping timeout: 252 seconds]
pgib has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
dionysus69 has quit [Ping timeout: 268 seconds]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
Vintal has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
Linux_Kerio has quit [Quit: Konversation terminated!]
nirvdrum has joined #ruby
Linux_Kerio has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
nirvdrum has quit [Quit: nirvdrum]