Class: IO

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

Instance Method Summary collapse

Instance Method Details

#read_udatObject

Calls Udat::Node.read_from_stream(self).



1346
1347
1348
# File 'lib/udat.rb', line 1346

def read_udat
  Udat::Node.read_from_stream(self)
end

#write_udat(object) ⇒ Object

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



1351
1352
1353
1354
# File 'lib/udat.rb', line 1351

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