Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/udat.rb
Instance Method Summary collapse
-
#to_udat(tag = nil) ⇒ Object
Casts the Object to an Udat::Scalar object, optionally with a given tag.
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.
1305 1306 1307 |
# File 'lib/udat.rb', line 1305 def to_udat(tag = nil) Udat::Scalar.new(tag, self) end |