Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#to_udat(tag = nil) ⇒ Object

Casts the Hash to an UdatCollection object, optionally with a given tag. The UdatCollection object is marked to be unordered.



981
982
983
# File 'lib/udat.rb', line 981

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