Module: MeasuresHelper
- Defined in:
- app/helpers/measures_helper.rb
Overview
View helper for measurement and unit formatting.
Delegated Instance Attributes collapse
-
#inches_to_feetinches ⇒ Object
Alias for Unitconversions#inches_to_feetinches.
Instance Method Summary collapse
-
#weight_with_pounds(weight) ⇒ String
Formats a weight value in pounds.
Instance Method Details
#inches_to_feetinches ⇒ Object
Alias for Unitconversions#inches_to_feetinches
5 |
# File 'app/helpers/measures_helper.rb', line 5 delegate :inches_to_feetinches, to: :UnitConversions |
#weight_with_pounds(weight) ⇒ String
Formats a weight value in pounds.
10 11 12 |
# File 'app/helpers/measures_helper.rb', line 10 def weight_with_pounds(weight) "#{weight.round(2)} lb" end |