typecast.rb

Path: lib/facets/more/typecast.rb
Last Update: Sat Sep 20 13:22:49 +0000 2008

typecast.rb

Copyright (c) 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

time   facets/core/string/methodize   facets/core/string/modulize  

[Validate]