Sha256: bd68aeab300dc1b7d68c8979b0a4c1ef22d200e0d2d136fa288b63a3165453f6

Contents?: true

Size: 308 Bytes

Versions: 1

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

module BasicTemperature
  class Temperature
    module AdditionalHelpers
      private

      def degrees_with_decimal?(degrees)
        degrees % 1 != 0
      end

      def degrees_without_decimal?(degrees)
        !degrees_with_decimal?(degrees)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
basic_temperature-1.0.0 lib/basic_temperature/temperature/additional_helpers.rb