Class: Twostroke::Runtime::Types::Null

Inherits:
Primitive show all
Defined in:
lib/twostroke/runtime/types/null.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/null.rb', line 3

def self.new
  @@null ||= Null.allocate
end

Instance Method Details

#===(other) ⇒ Object



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

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

#typeofObject



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

def typeof
  "object"
end