blop_ has quit [Remote host closed the connection]
blop_ has joined #ruby
hightower2 has joined #ruby
u0_a115 has quit [Ping timeout: 255 seconds]
u0_a115 has joined #ruby
u0_a115 has quit [Ping timeout: 255 seconds]
keyvan has quit [Server closed connection]
Vonter has quit [Ping timeout: 255 seconds]
Vonter has joined #ruby
u0_a115 has joined #ruby
yziquel has joined #ruby
keyvan has joined #ruby
u0_a1151 has joined #ruby
u0_a115 has quit [Read error: Connection reset by peer]
u0_a1151 has quit [Ping timeout: 252 seconds]
u0_a1151 has joined #ruby
yziquel has quit [Quit: Client closed]
yziquel has joined #ruby
u0_a1151 has quit [Ping timeout: 264 seconds]
u0_a1152 has joined #ruby
u0_a1152 has quit [Ping timeout: 252 seconds]
u0_a1152 has joined #ruby
u0_a1152 has quit [Ping timeout: 244 seconds]
John_Ivan has quit [Read error: Connection reset by peer]
John_Ivan has joined #ruby
yziquel has quit [Ping timeout: 245 seconds]
Spitfire has quit [Ping timeout: 246 seconds]
Spitfire has joined #ruby
yziquel has joined #ruby
John_Ivan has quit [Quit: Disrupting the dragon's slumber one time too often shall eventually bestow upon all an empirical and indiscriminate conflagration that will last for all goddamn eternity.]
<constxqt>
anyone bored? i have a little challenge for you
<constxqt>
write a program that just copies data from stdin to stdout but while it's copying it plots a sliding histogram on the tty showing the flow rate of the data for each 0.1sec interval
<leftylink>
so they learn their name upon being assigned to a constant.
<leftylink>
what is the mechanism by which that happens?
<leftylink>
is there a assigned_to_constant hook somewhere?
<ox1eef_>
leftylink: Don't believe there is a hook for that. I'd guess it comes from the implementation of Module#name.
<ox1eef_>
There is a const_added hook though, IIRC.
<ox1eef_>
It was added in 3.2, though - and I believe that behavior predates 3.2. Probably not dependent on it.
u0_a1152 has quit [Ping timeout: 244 seconds]
Linux_Kerio has joined #ruby
constxqt has joined #ruby
constxqt has quit [Ping timeout: 244 seconds]
polishdub has quit [Ping timeout: 252 seconds]
levitating has joined #ruby
<levitating>
Is there a way to do something like Array::map([]). So calling an instance method by referring to the class?
<ox1eef_>
Nope. Not without some plumbing anyway. Ruby is OO first and foremost. But I like that pattern, and used it exclusively in a project of mine: https://github.com/0x1eef/ryo.rb