Sha256: d9da14970554b109de2e02484f1b885d74f7e7fd83c110dbdaf12df653265931
Contents?: true
Size: 514 Bytes
Versions: 10
Compression:
Stored size: 514 Bytes
Contents
class Object # 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
10 entries across 10 versions & 1 rubygems