Comment on Rubinius X, an experiment in modernizing RubyparentComments−cheald12ySans ActiveSupport, you can achieve the same things by just opening class/module eigenclass: module Foo class << self attr_accessor :bar end end Foo.bar = "baz"−lobster_johnson12ySure, but wasn't that exactly what I wrote in my first example?−cheald12yOy, it is. Sorry; my brain is apparently missing its reading comprehension hat today.
Comments
Sans ActiveSupport, you can achieve the same things by just opening class/module eigenclass:
Sure, but wasn't that exactly what I wrote in my first example?
Oy, it is. Sorry; my brain is apparently missing its reading comprehension hat today.