lib/facets/core/kernel/quaclass.rb in facets-1.4.2 vs lib/facets/core/kernel/quaclass.rb in facets-1.4.3

- old
+ new

@@ -1,13 +1,16 @@ module Kernel - # Access to an object's "special" class, otherwise - # known as it's eigenclass or metaclass or own, etc. + # Easy access to an object qua class, otherwise + # known as the object's metaclass or singleton class. # - # One day these names must be reconciled! + # It is what it is. + # + # -- transonoma - def quaclass + def quaclass( &block ) + (class << self; self; end).module_eval(&block) if block (class << self; self; end) end alias_method :__quaclass__, :quaclass end