Class: Array

Inherits:
Object show all
Defined in:
lib/udat.rb

Instance Method Summary collapse

Instance Method Details

#to_udat(tag = nil) ⇒ Object

Casts the Array to an UdatCollection object, optionally with a given tag. The UdatCollection object is marked to be ordered. Each element of the array may be an Array of size 2, in which case the 2 entries are used as key and value. If an element of the Array is not an Array, it will be used as value without an associated key.



973
974
975
# File 'lib/udat.rb', line 973

def to_udat(tag = nil)
  UdatCollection.new(tag, self)
end