Class: TestML::None

Inherits:
Object show all
Defined in:
lib/testml/runtime.rb

Overview


Instance Attribute Summary

Attributes inherited from Object

#value

Instance Method Summary collapse

Methods inherited from Object

#none, #type

Constructor Details

#initializeNone

Returns a new instance of None.



471
472
473
# File 'lib/testml/runtime.rb', line 471

def initialize
  super(nil)
end

Instance Method Details

#boolObject



480
481
482
# File 'lib/testml/runtime.rb', line 480

def bool
  TestML::Constant::False
end

#listObject



483
484
485
# File 'lib/testml/runtime.rb', line 483

def list
  TestML::List.new []
end

#numObject



477
478
479
# File 'lib/testml/runtime.rb', line 477

def num
  TestML::Num.new(0)
end

#strObject



474
475
476
# File 'lib/testml/runtime.rb', line 474

def str
  TestML::Str.new('')
end