Class: Twostroke::Runtime::Types::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/twostroke/runtime/types/value.rb

Direct Known Subclasses

Object, Primitive

Instance Method Summary collapse

Instance Method Details

#has_instance(obj) ⇒ Object



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

def has_instance(obj)
  Twostroke::Runtime::Lib.throw_type_error "Expected a function in instanceof check"
end

#to_rubyObject



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

def to_ruby
  nil
end