doc: add missing self qualifier to (Person) -getAgeInUnits:
This commit is contained in:
@@ -87,9 +87,9 @@ class Person
|
||||
|
||||
- getAgeInUnit:units
|
||||
^match units in
|
||||
#years => age,
|
||||
#months => age / 12,
|
||||
#days => age / 365,
|
||||
#years => self.age,
|
||||
#months => self.age / 12,
|
||||
#days => self.age / 365,
|
||||
_ => 0,
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user