Permalink
Browse files

Revert "Added Object#metaclass"

This reverts commit 98dd722.
  • Loading branch information...
1 parent e0846c8 commit 7a84681016a176185df95b347b94c37496cac159 @josh josh committed Jul 16, 2008
@@ -1,5 +1,4 @@
require 'active_support/core_ext/object/conversions'
require 'active_support/core_ext/object/extending'
require 'active_support/core_ext/object/instance_variables'
-require 'active_support/core_ext/object/metaclass'
require 'active_support/core_ext/object/misc'
@@ -1,8 +0,0 @@
-class Object
- # Get object's meta (ghost, eigenclass, singleton) class
- def metaclass
- class << self
- self
- end
- end
-end
@@ -173,14 +173,6 @@ def test_duck_typing
assert duck.acts_like?(:time)
assert !duck.acts_like?(:date)
end
-
- def test_metaclass
- string = "Hello"
- string.metaclass.instance_eval do
- define_method(:foo) { "bar" }
- end
- assert_equal "bar", string.foo
- end
end
class ObjectInstanceVariableTest < Test::Unit::TestCase

0 comments on commit 7a84681

Please sign in to comment.