Sha256: c2042bcd834d72fe51eeebb99d9e2f2fb83812cb6912049c372ff13057fc645e
Contents?: true
Size: 281 Bytes
Versions: 1
Compression:
Stored size: 281 Bytes
Contents
# frozen_string_literal: true module CodebrackerLogicGame class User extend Validation include Valid attr_reader :name validate :name, presence: true, type: String, length: (3..20) def initialize(name) @name = name validate! end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codebracker_logic_game-0.1.0 | lib/user.rb |