Method: Hash#to_udat
- Defined in:
- lib/udat.rb
#to_udat(tag = nil) ⇒ Object
Casts the Hash to an Udat::Collection object, optionally with a given tag. The Udat::Collection object is marked to be unordered.
1293 1294 1295 |
# File 'lib/udat.rb', line 1293 def to_udat(tag = nil) Udat::Collection.new(tag, self.to_a).unordered! end |