module MortgageBuddy::SafeNum

Public Instance Methods

safe_float(the_float) click to toggle source
# File lib/mortgage_buddy/safe_num.rb, line 3
def safe_float(the_float)
  Float(the_float.to_s)
end
safe_int(the_int) click to toggle source
# File lib/mortgage_buddy/safe_num.rb, line 7
def safe_int(the_int)
  Integer(the_int.to_s)
end