Class: TestML::List

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

#bool, #none, #num, #str, #type

Constructor Details

#initialize(value = []) ⇒ List

Returns a new instance of List.



458
459
460
# File 'lib/testml/runtime.rb', line 458

def initialize(value=[])
  super(value)
end

Instance Method Details

#listObject



464
465
466
# File 'lib/testml/runtime.rb', line 464

def list
  return self
end

#push(elem) ⇒ Object



461
462
463
# File 'lib/testml/runtime.rb', line 461

def push elem
  @value.push elem
end