test/hobosupport/module.rdoctest in hobo_support-2.0.0 vs test/hobosupport/module.rdoctest in hobo_support-2.0.1
- old
+ new
@@ -39,21 +39,21 @@
C.name
=> "MY NAME IS C"
-## `Module#interiting_cattr_reader`
+## `Module#inheriting_cattr_reader`
Declares a reader for an instance variable on the class. The attribute is looked up on the superclass if not defined on the receiving class. In other words, the superclass defines a default that subclasses can override. The declaration can also give a default, as shown here.
>>
class A
inheriting_cattr_reader :nickname => "Andy"
end
class B < A; end
-`B` has the same nickname as its superclass `A`
+`B` has the same nickname as its superclass `A`.
>> A.nickname
=> "Andy"
>> B.nickname
=> "Andy"