Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/hasmenu/spellchecker.rb
Overview
numeric test
Instance Method Summary collapse
Instance Method Details
#number? ⇒ Boolean
8 9 10 |
# File 'lib/hasmenu/spellchecker.rb', line 8 def number? true if Float(self) rescue false end |