typecast.rb

Copyright © 2004 Jonas Pfenniger

  Ruby License

  This module is free software. You may use, modify, and/or redistribute this
  software under the same terms as Ruby.

  This program is distributed in the hope that it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  FOR A PARTICULAR PURPOSE.

Author(s)

  • Jonas Pfenniger

Changelog

06.06.2006 - 3v1l d4y

 * Removed transformation options.
 * Removed StringIO typecast. It is not required by default.
 * Added TypeCastException for better error reporting while coding.

Developer Notes

  TODO Consider how this might fit in with method signitures, overloading,
       and expiremental euphoria-like type system.

  TODO Look to implement to_int, to_mailtext, to_r, to_rfc822text and to_str.
Required Files