remove singletons and make them constants
This commit is contained in:
parent
3ca61d54eb
commit
102c5c2327
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user