2014-06-26 18:39:02 +03:00
|
|
|
module Virtual
|
|
|
|
class Mystery < Value
|
2014-07-01 15:57:13 +03:00
|
|
|
def initialize
|
2014-06-14 21:29:57 +03:00
|
|
|
end
|
2014-06-26 18:39:02 +03:00
|
|
|
|
|
|
|
def as type
|
|
|
|
type.new
|
|
|
|
end
|
|
|
|
|
2014-06-14 21:29:57 +03:00
|
|
|
end
|
2014-07-01 15:57:13 +03:00
|
|
|
|
2014-07-01 18:58:25 +03:00
|
|
|
class Singleton < Value
|
2014-07-01 15:57:13 +03:00
|
|
|
end
|
2014-07-01 18:58:25 +03:00
|
|
|
class TrueValue < Singleton
|
2014-07-01 15:57:13 +03:00
|
|
|
end
|
2014-07-01 18:58:25 +03:00
|
|
|
class FalseValue < Singleton
|
|
|
|
end
|
|
|
|
class NilValue < Singleton
|
2014-07-01 15:57:13 +03:00
|
|
|
end
|
2014-06-14 21:29:57 +03:00
|
|
|
end
|