Project

General

Profile

« Previous | Next » 

Revision 6af3d917

Added by Marc Dequènes over 14 years ago

  • ID 6af3d9176f2682430237e3fa8b669cc465e6b4b7

[evol] added is_numeric? to String

View differences:

lib/cyborghood/base/lang_additions.rb
end
end
class String
def is_numeric?
Float self rescue false
end
end
# WARNING: the TMail send_to() method is _unsuable_, even with the following fixes
require 'tmail'
require 'action_mailer/quoting'

Also available in: Unified diff