Class: Praat::MetaCollection

Inherits:
Array
  • Object
show all
Defined in:
lib/praat.rb

Overview

Something will be either a collection or an object. Only an object can have properties.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#parentObject

Returns the value of attribute parent.



42
43
44
# File 'lib/praat.rb', line 42

def parent
  @parent
end

Instance Method Details

#<<(object) ⇒ Object



44
45
46
47
# File 'lib/praat.rb', line 44

def << object
  object.parent = self
  super object
end

#to_sObject



49
50
51
# File 'lib/praat.rb', line 49

def to_s
  self.inspect << super
end