Module: MortgageBuddy::SafeNum
- Included in:
- Amoratizer, MortgageCost
- Defined in:
- lib/mortgage_buddy/safe_num.rb
Instance Method Summary collapse
Instance Method Details
#safe_float(the_float) ⇒ Object
3 4 5 |
# File 'lib/mortgage_buddy/safe_num.rb', line 3 def safe_float(the_float) Float(the_float.to_s) end |
#safe_int(the_int) ⇒ Object
7 8 9 |
# File 'lib/mortgage_buddy/safe_num.rb', line 7 def safe_int(the_int) Integer(the_int.to_s) end |