postmodern has quit [Quit: Leaving]
postmodern has joined #rom-rb
jfredett has joined #rom-rb
snusnu has quit [Quit: Leaving.]
jfredett has quit [Quit: Leaving.]
mbj has quit [Ping timeout: 264 seconds]
snusnu has joined #rom-rb
snusnu has quit [Read error: Connection reset by peer]
snusnu has joined #rom-rb
knowtheory has joined #rom-rb
postmodern has quit [Quit: Leaving]
mbj has joined #rom-rb
<
mbj>
solnic, snusnu: Sorry was ueber busy the last days.
<
mbj>
I'm about to eat now, bring my child to bed than plan my next trip to munich
<
mbj>
And THAN we can sync about the workshop?
<
snusnu>
mbj: can't promise that, but will try to make it … i'll definitely be online a bit later tho, close to midnight
<
mbj>
snusnu: no problem, me too
<
mbj>
snusnu: Instance methods defined on subclasses of modules do NOT get mixed into other classes, use the included hooke.
<
mbj>
snusnu: Think about it this way:
<
mbj>
def self.included(descendant)
<
mbj>
So the included hook is defined on singleton level.
<
mbj>
If you do a subclass of Module you define the included hook on the instance.
<
mbj>
class Foo < Module
<
mbj>
def included(descendant)
<
mbj>
So everything that is instance level on Module subclasses is the same like singleton level with "normal" modules.
<
snusnu>
mbj: ah ok thx!
<
mbj>
snusnu: Yeah, it took a while for myself to learn this :D
<
snusnu>
mbj: i assume i can still do the same with extended, i.e. overwrite that hook
<
mbj>
snusnu: sure.
<
snusnu>
mbj: hah i can imagine .. awesome, makes for some nice dsl
<
snusnu>
mbj: btw since you asked, subway will contain stuff common to plugging substation behind rack, or rather, how
*i* do that
<
mbj>
This is the first time I was able to explain this in a short descriptopn.
<
snusnu>
mbj: and that module question was related to the router dsl
<
mbj>
snusnu: I'd love u use request/response
<
snusnu>
mbj: you did a good job! it was very clear
<
snusnu>
mbj: i will
<
snusnu>
mbj: just for the record, for extend, one needs to do: def extended(host); (class << host; self; end).class_eval { … } end
<
mbj>
snusnu: (class << host; self; end) => host.singleton_class
knowtheory has quit [Quit: Computer has gone to sleep]
knowtheory has joined #rom-rb
<
snusnu>
mbj: ah heh, is that available in 1.9? i remember
*years* ago that was the way to get at the singleton class heh
<
mbj>
snusnu: I think it is 1.9 stdlib
<
mbj>
s/stdlib/corelib/
knowtheory has quit [Ping timeout: 264 seconds]
knowtheory has joined #rom-rb
mbj has quit [Ping timeout: 240 seconds]
mbj has joined #rom-rb
martxel has joined #rom-rb
<
mbj>
martxel: hola
<
martxel>
hehe, hola
<
martxel>
how's going? is it that obvious that I'm spanish?
<
mbj>
martxel: I always say hola.
<
mbj>
the only spanish word I know.
<
mbj>
And I greet all "new" nicks here.
<
mbj>
martxel: But I have to hit bed now, feel free to talk to the others (if available). I'll be online again tomorrow.
<
martxel>
cool, good night then, :)
<
martxel>
I like your project so I'll be hanging around
<
mbj>
martxel: nice!
<
mbj>
martxel: Feel free to ask any question, (but not this time, sorry).
<
mbj>
hitting bed, cu
mbj has quit [Quit: leaving]
postmodern has joined #rom-rb
postmodern has quit [Quit: Leaving]