adds a mom version of basic values

This commit is contained in:
Torsten Ruger
2018-03-13 12:30:51 +05:30
parent 45bfe118d1
commit b297650b78
20 changed files with 94 additions and 30 deletions

View File

@ -1,11 +1,10 @@
# Integer class for representing maths on Integers
# Integers are Values (not Objects),
# Integers are Objects, spcifically DataObjects
# - they have fixed value
# - they are immutable
# you can *not* assign instance variables or methods
# TODO how this idea works with Numeric ?
# (both by implementation, not design.
# Ie it would be possible to change the value, we just don't support that)
module Parfait
class Integer