psantos10/Validation

View on GitHub
lib/resize/rules/is_multiple.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Resize
  module Validation
    module Rules
      module IsMultiple
        private
          def is_valid?(verify, number)
            number != 0 ? verify % number == 0 : zero?
          end
      end
    end
  end
end