Class: IO

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

Instance Method Summary collapse

Instance Method Details

#read_udatObject

Calls Udat.read_from_stream(self).



995
996
997
# File 'lib/udat.rb', line 995

def read_udat
  Udat.read_from_stream(self)
end

#write_udat(object) ⇒ Object

Calls Udat#write_to_stream(self), after converting the object to an Udat object by calling Object#to_udat.



1000
1001
1002
# File 'lib/udat.rb', line 1000

def write_udat(object)
  object.to_udat.write_to_stream(self)
end