13 lines
265 B
Ruby
13 lines
265 B
Ruby
|
|
||
|
# Integer class for representing mathods on Integers
|
||
|
# Integers are Values (not Objects),
|
||
|
# - they have fixed value
|
||
|
# - they are immutable
|
||
|
# you can *not* assign instance variables or methods
|
||
|
|
||
|
# TODO how this idea works with Numeric ?
|
||
|
|
||
|
class Integer < Value
|
||
|
|
||
|
end
|