class Object

Constants

CRLF
LF

Public Instance Methods

number_or_nil(str) click to toggle source

small helper method stackoverflow.com/

questions/24980295/strictly-convert-string-to-integer-or-nil
# File lib/safrano/core_ext.rb, line 10
def number_or_nil(str)
  num = str.to_i
  num if num.to_s == str
end