Module: MeasuresHelper

Defined in:
app/helpers/measures_helper.rb

Overview

View helper: measures.

Delegated Instance Attributes collapse

Instance Method Summary collapse

Instance Method Details

#inches_to_feetinchesObject

Alias for Unitconversions#inches_to_feetinches

Returns:

  • (Object)

    Unitconversions#inches_to_feetinches

See Also:



4
# File 'app/helpers/measures_helper.rb', line 4

delegate :inches_to_feetinches, to: :UnitConversions

#weight_with_pounds(weight) ⇒ Object



6
7
8
# File 'app/helpers/measures_helper.rb', line 6

def weight_with_pounds(weight)
  "#{weight.round(2)} lb"
end