Class: Twostroke::Runtime::Types::Undefined

Inherits:
Primitive show all
Defined in:
lib/twostroke/runtime/types/undefined.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Value

#has_instance, #to_ruby

Class Method Details

.newObject



3
4
5
# File 'lib/twostroke/runtime/types/undefined.rb', line 3

def self.new
  @@undefined ||= Undefined.allocate
end

Instance Method Details

#===(other) ⇒ Object



7
8
9
# File 'lib/twostroke/runtime/types/undefined.rb', line 7

def ===(other)
  other.is_a?(Undefined)
end

#typeofObject



11
12
13
# File 'lib/twostroke/runtime/types/undefined.rb', line 11

def typeof
  "undefined"
end