Sha256: 33c6736caa221b5e59bd860e40fd14cbd502763837990c66aa7e2b3596210912
Contents?: true
Size: 496 Bytes
Versions: 5
Compression:
Stored size: 496 Bytes
Contents
covers 'facets/kernel/meta_class' test_case Kernel do method :meta_class do test do x = Class.new m = (class << x; self; end) x.meta_class.assert == m end test "class_eval block on meta class" do c = Class.new c.meta_class do def foo; "foo"; end end c.foo.assert == "foo" end end method :metaclass do test do x = Class.new m = (class << x; self; end) x.metaclass.assert == m end end end
Version data entries
5 entries across 5 versions & 2 rubygems