Method: RIEL::StringExt#num
- Defined in:
- lib/riel/string.rb
#num ⇒ Object
Returns the string, as a number if it is one, and nil otherwise,
25 26 27 28 29 30 31 |
# File 'lib/riel/string.rb', line 25 def num begin Integer self rescue ArgumentError nil end end |