Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/oxcelix.rb
Instance Method Summary collapse
-
#numeric? ⇒ Bool
Returns true if the given String represents a numeric value.
Instance Method Details
#numeric? ⇒ Bool
Returns true if the given String represents a numeric value
20 21 22 |
# File 'lib/oxcelix.rb', line 20 def numeric? Float(self) != nil rescue false end |