test/hobosupport/metaid.rdoctest in hobo_support-2.0.0 vs test/hobosupport/metaid.rdoctest in hobo_support-2.0.1
- old
+ new
@@ -5,13 +5,13 @@
Why the Luck Stiff's essential meta-programming additions to Object. These are probably distributed elsewhere, but they're small enough to throw them in to HoboSupport and remove an external dependency.
## `Object#metaclass`
-Returns the "metaclass", "eigenclass" or "singleton class" of a given ruby Object
+Returns the "metaclass", "eigenclass" or "singleton class" of a given ruby Object.
>> o = Object.new
- >> def o.foo; ;123; end
+ >> def o.foo; 123; end
>> o.foo
=> 123
>> o.metaclass.method_defined?(:foo)
=> true