Sha256: ae818f79238cf0d314271798c6ac7ad1405c8e58559323db24b9e64a937167b3
Contents?: true
Size: 307 Bytes
Versions: 1
Compression:
Stored size: 307 Bytes
Contents
# frozen_string_literal: true module CodebrackerLogicGame class SecretCode extend Validation include Valid attr_accessor :value validate :value, presence: true, type: Integer, length: [4], values: (1..6) def initialize(value) @value = value validate! end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codebracker_logic_game-0.1.0 | lib/secret_code.rb |