rubyx/lib/virtual/mystery.rb

21 lines
259 B
Ruby
Raw Normal View History

module Virtual
class Mystery < Value
2014-07-01 15:57:13 +03:00
def initialize
end
def as type
type.new
end
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
end