diff options
Diffstat (limited to 'lib/unit.rb')
| -rw-r--r-- | lib/unit.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/unit.rb b/lib/unit.rb index 632ea95..0761c8e 100644 --- a/lib/unit.rb +++ b/lib/unit.rb @@ -2,4 +2,13 @@ class Unit def *(price) price end + + def vest_at(price) + @vested = true + @vesting_price = price + end + + def vested? + @vested + end end |
