Sha256: 29591349ccaf9316afd530e221ce4a67f78c223b348e6b129b7771c2d6819a52
Contents?: true
Size: 515 Bytes
Versions: 16
Compression:
Stored size: 515 Bytes
Contents
module Kernel # Defines core method __class__ as an alias of class. # This allows you to use #class as your own method, without # loosing the ability to determine the object's class. # alias_method( :__class__, :class ) end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TCKernel < Test::Unit::TestCase def test__class__ assert_equal( self.class, self.__class__ ) end end =end
Version data entries
16 entries across 16 versions & 1 rubygems