Sha256: 78b3e55f2d741ba9e52823c6673dff4113115be60ce797653def4c43bf5d3eb0
Contents?: true
Size: 251 Bytes
Versions: 2
Compression:
Stored size: 251 Bytes
Contents
# frozen_string_literal: true module Codebreaker class User include Validation attr_reader :name NAME_LENGTH = (3..20).freeze def initialize(name:) validate_user_name(name, NAME_LENGTH) @name = name end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
codebreaker_manfly-0.1.1 | lib/codebreaker/user.rb |
codebreaker_manfly-0.1.0 | lib/codebreaker/user.rb |