module Kernel # Access to an object's "special" class, otherwise # known as it's eigenclass or metaclass or own, etc. # # One day these names must be reconciled! def quaclass (class << self; self; end) end alias_method :__quaclass__, :quaclass end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TCKernel < Test::Unit::TestCase def test_singleton o = Object.new assert_equal( (class << o; self; end), o.quaclass ) end end =end