remove singletons and make them constants

This commit is contained in:
Torsten Ruger 2014-07-15 09:15:04 +03:00
parent 3ca61d54eb
commit 102c5c2327

View File

@ -1,3 +1,5 @@
require_relative "constants"
module Virtual module Virtual
class Mystery < Value class Mystery < Value
def initialize def initialize
@ -9,12 +11,10 @@ module Virtual
end end
class Singleton < Value class TrueValue < Constant
end end
class TrueValue < Singleton class FalseValue < Constant
end end
class FalseValue < Singleton class NilValue < Constant
end
class NilValue < Singleton
end end
end end