Sha256: 3d2bb82262c8253cccaf9be409932970cb5304964a31ea25369d75a134a9f0eb

Contents?: true

Size: 461 Bytes

Versions: 16

Compression:

Stored size: 461 Bytes

Contents

module Kernel

  # Defines object_classas an alias of class.
  # This is an alternative to __class__, akin to
  # #object_id.
  #
  alias_method( :object_class, :class )

end


#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
=begin test

  require 'test/unit'

  class TCKernel < Test::Unit::TestCase

    def test_object_class
      assert_equal( self.class, self.object_class )
    end

  end

=end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
facets-1.4.2 lib/facets/core/kernel/object_class.rb
facets-1.4.0 lib/facets/core/kernel/object_class.rb
facets-1.4.1 lib/facets/core/kernel/object_class.rb
facets-1.4.3 lib/facets/core/kernel/object_class.rb
facets-1.4.4 lib/facets/core/kernel/object_class.rb
facets-1.4.5 lib/facets/core/kernel/object_class.rb
facets-1.7.0 lib/facets/core/kernel/object_class.rb
facets-1.7.30 lib/facets/core/kernel/object_class.rb
facets-1.7.38 lib/facets/core/kernel/object_class.rb
facets-1.7.46 lib/facets/core/kernel/object_class.rb
facets-1.8.0 lib/facets/core/kernel/object_class.rb
facets-1.8.20 lib/facets/core/kernel/object_class.rb
facets-1.8.49 lib/facets/core/kernel/object_class.rb
facets-1.8.51 lib/facets/core/kernel/object_class.rb
facets-1.8.54 lib/facets/core/kernel/object_class.rb
facets-1.8.8 lib/facets/core/kernel/object_class.rb