Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/core_ext/string.rb
Instance Method Summary collapse
Instance Method Details
#is_numeric? ⇒ Boolean
2 3 4 5 6 7 |
# File 'lib/core_ext/string.rb', line 2 def is_numeric? Float(self.gsub(",","")) true rescue false end |