doc: add missing self qualifier to (Person) -getAgeInUnits:

This commit is contained in:
2024-11-08 13:24:18 +00:00
parent a8340a01f9
commit 4d4e86be13

View File

@@ -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