update reader and implement singletons

This commit is contained in:
Torsten Ruger
2014-07-01 15:57:13 +03:00
parent 94d1140686
commit 7045a4b256
7 changed files with 48 additions and 5 deletions

View File

@@ -6,6 +6,12 @@ module Virtual
# Integer and (Object) References are the main derived classes, but float will come and ...
# The Mystery Value has unknown type and has only casting methods. So it must be cast to be useful.
class Value
def == other
other.class == self.class
end
def inspect
self.class.name + ".new()"
end
def type
self.class
end