Sha256: b7ff1bb0bd4fd3b15802657f7426892f3387bfcdf5c56ccf1b98ffa8854428b1
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
# frozen_string_literal: true module Codebreaker class Guess include Validations attr_reader :numbers validate :numbers, :presence validate :numbers, :type, Integer validate :numbers, :length, AMOUNT_OF_NUMBERS validate :numbers, :range, RANGE_OF_NUMBERS def initialize(numbers) @numbers = numbers validate! end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codebreaker_sn-0.1.0 | lib/codebreaker/guess.rb |