Class: Object

Inherits:
BasicObject
Defined in:
lib/udat.rb

Instance Method Summary collapse

Instance Method Details

#to_udat(tag = nil) ⇒ Object

Casts the Object to an Udat::Scalar object, optionally with a given tag. Unless overwritten by sub classes, only the string representation (as returned by Object#to_s) will be stored as content in the Udat::Scalar object.



1272
1273
1274
# File 'lib/udat.rb', line 1272

def to_udat(tag = nil)
  Udat::Scalar.new(tag, self)
end