Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/jaspion/kilza.rb
Overview
Ruby class
Instance Method Summary collapse
-
#number? ⇒ Boolean
Test if the string can be a number.
Instance Method Details
#number? ⇒ Boolean
Test if the string can be a number
17 18 19 |
# File 'lib/jaspion/kilza.rb', line 17 def number? true if Float(self) rescue false end |