Class: Array
Instance Method Summary collapse
-
#to_udat(tag = nil) ⇒ Object
Casts the Array to an Udat::Collection object, optionally with a given tag.
Instance Method Details
#to_udat(tag = nil) ⇒ Object
Casts the Array to an Udat::Collection object, optionally with a given tag. The Udat::Collection 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.
1284 1285 1286 |
# File 'lib/udat.rb', line 1284 def to_udat(tag = nil) Udat::Collection.new(tag, self) end |