Facets defines metaclass like this:
(class << self; self; end).class_eval(&block)
(class << self; self; end)
alias_method :metaclass, :meta_class
RSpec defines it this way:
class << self; self; end
I just spent an hour figuring out why some carefully-tested code went no-op after adding RSpec to a project. As a community we need to commit to a standard definition here. What should it be?
We are a collection of experienced, thoughtful technologists, passionate about helping organizations deploy
technology effectively and humanely to build better futures. We like to work with you on the hard stuff.