Sha256: 524bf9667ebe8875c19ccd6f242ef157fa6aa4d4bb2a599d11d91d83085ddd20

Contents?: true

Size: 234 Bytes

Versions: 1

Compression:

Stored size: 234 Bytes

Contents

module RubyArea
  module Units
    class Perch
      def initialize value
        @value = value
      end

      def to_perch
        @value % 160
      end

      def to_acre
        (@value / 160).floor
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_area-0.0.1 lib/ruby_area/units/perch.rb