My technical blog.
Excellent posts here and here by Jay Fields where he gives an alternative to use singleton classes.
class << self def hi puts 'Hi' endend
mod = Module.new do def hi puts 'Hi' endendextend mod
Post a Comment
0 comments:
Post a Comment