roshanavand has quit [Remote host closed the connection]
davidw_ has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
frankd_ is now known as FrankD
cocalero_ has joined #ruby
mooff has quit [Remote host closed the connection]
mooff has joined #ruby
mooff has quit [Remote host closed the connection]
mooff has joined #ruby
mooff has quit [Remote host closed the connection]
jpn has joined #ruby
jpn has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
mixfix41 has joined #ruby
mixfix41 has quit [Remote host closed the connection]
cocalero_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
mixfix41 has joined #ruby
davidw_ has quit [Ping timeout: 246 seconds]
SteveR has joined #ruby
Wra1th has joined #ruby
SteveR has quit [Ping timeout: 252 seconds]
monoliths2 has joined #ruby
testing1233 has joined #ruby
Wra1th has left #ruby [#ruby]
Wra1th has joined #ruby
Wra1th has quit [Client Quit]
Wra1th has joined #ruby
Wra1th has left #ruby [#ruby]
SteveR has joined #ruby
monoliths2 has quit [Ping timeout: 272 seconds]
Wra1th has joined #ruby
Wra1th has quit [Quit: wra1th]
libsys has quit [Ping timeout: 272 seconds]
Wra1th has joined #ruby
Wra1th has left #ruby [#ruby]
Wra1th has joined #ruby
Wra1th has left #ruby [#ruby]
testing1233 has quit [Quit: Client closed]
<tsujp>
What do you seasoned (or not so seasoned) Rubyist think of Crystal?
jpn has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
titibandit has joined #ruby
SteveR has quit [Quit: Client closed]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
<ox1eef_>
i know of a few ruby programmers who like it, some of them in this channel, and i know of others who don't - so as to be expected, I guess :)
aeris has quit [Ping timeout: 268 seconds]
aeris has joined #ruby
ur5us has quit [Ping timeout: 272 seconds]
_ht has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
s-liao-2000 has quit [Quit: Client closed]
libsys has joined #ruby
titibandit has quit [Remote host closed the connection]
gr33n7007h has quit [Quit: WeeChat 3.5]
gr33n7007h has joined #ruby
Sankalp has quit [Ping timeout: 255 seconds]
Sankalp has joined #ruby
teclator has joined #ruby
ur5us has joined #ruby
jpn has joined #ruby
mixfix41 has quit [Ping timeout: 268 seconds]
jpn has quit [Ping timeout: 246 seconds]
<tsujp>
Sounds about par for the course haha
gr33n7007h has quit [Quit: WeeChat 3.5]
gr33n7007h has joined #ruby
dionysus69 has joined #ruby
Rounin has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
Ziyan has quit [Ping timeout: 246 seconds]
Ziyan has joined #ruby
jpn has joined #ruby
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mooff has quit [Remote host closed the connection]
Ziyan has joined #ruby
mooff has joined #ruby
twosuns has joined #ruby
markong has quit [Ping timeout: 276 seconds]
twosuns has quit [Quit: Leaving]
Ziyan has quit [Ping timeout: 248 seconds]
Ziyan has joined #ruby
TomyWork has quit [Quit: Leaving]
teclator has quit [Ping timeout: 255 seconds]
sympt5 has joined #ruby
sympt has quit [Ping timeout: 240 seconds]
sympt5 is now known as sympt
Ziyan has quit [Ping timeout: 240 seconds]
Ziyan has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
jpn has quit [Ping timeout: 240 seconds]
Ziyan has quit [Ping timeout: 272 seconds]
Ziyan has joined #ruby
jpn has joined #ruby
davidw_ has quit [Ping timeout: 246 seconds]
protektwar has quit [Ping timeout: 268 seconds]
Ziyan has quit [Ping timeout: 246 seconds]
jpn has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
_ht has quit [Remote host closed the connection]
libsys has joined #ruby
jpn has joined #ruby
Ziyan has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
bidumcris has joined #ruby
Ziyan has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
<rapha>
isn't there a way to bring something Digest::MD5's hexdigest method into local scope, like Rake does with FileUtils? i remember something about "using" but that's not the one i'm looking for...
<adam12>
rapha: Why?
<adam12>
I don't think there's anything special in Digest to make this work, but maybe we can see what you're doing.
<rapha>
adam12: i only tried: import digest; using Digest::MD5 ... to then be able to say hexdigest('abc')
<leah2>
what language is that
<rapha>
but the second line already doesn't work. but i do know rake does something like this with FileUtils, because you can just mkdir_p, etc. in there
<rapha>
leah2: 'using' is the wrong thing and i know that. i'm trying to remember the right thing.
<leah2>
import isnt ruby already :p
<rapha>
oh good lord
<rapha>
too much python at work, and now back to ruby at home, so sorry y'all
<rapha>
require ofc
<adam12>
rapha: I'd just define a method that calls it for you.
<adam12>
rapha: The reason Fileutils works is it is a module that extends itself.
<rapha>
and maybe i was thinking of python's "from foo import blah"
<rapha>
oh alright
<adam12>
rapha: Digest::MD5 doesn't work the same way. It's a class.
<rapha>
but then 'using' was the correct one
<adam12>
My example uses the new Ruby 3.? feature that defines a 1 line method.
<rapha>
i'll content myself with having learned a bit of new (and _new_, too) ruby syntax today :)
<havenwood>
rapha: You can do an `include Digest`, since Digest is a module.
<rapha>
aha! include! that's the other one!
<havenwood>
rapha: After you `include Digest` you can use `MD5.hexdigest` directly.
jpn has quit [Ping timeout: 256 seconds]
<rapha>
that does already make it a bit short
<rapha>
+er
<leah2>
kinda silly one can't include a class when a class is a module
<rapha>
maybe some technical reason for it?
<leah2>
probably wont do the right thing in most cases
<rapha>
hmm
<rapha>
ok, i have another question
<rapha>
x = 'hello'; (puts 'yeah' if x) and puts x
<rapha>
why does that only output yeah and not hello as well?
<leah2>
puts returns nil
<rapha>
aha
<rapha>
so, [1,2,3].each{|i| puts i} and puts "that's all" works because a block returns non-nil?
<leah2>
each returns the object i think
<rapha>
which in this case is an Array, not NilClass
<kwerle>
I would like to print a hash {foo: :bar} such that it prints out {foo: :bar} and not something with "'s or =>. Is there already an easy way to do that? (as you can imagine, searching for this is a nightmare)