Module: Utilities::Measurements

Defined in:
lib/utilities/measurements.rb

Constant Summary

FEET_TO_METERS =
3.048

Class Method Summary (collapse)

Class Method Details

+ (Object) feet_equals_meters(feet, meters)

Returns true if values when converted are equal



6
7
8
9
# File 'lib/utilities/measurements.rb', line 6

def self.feet_equals_meters(feet, meters) 
  return true if meters.to_f / feet.to_f == 3.048
  false
end