Sha256: 49e5a0dd9eb1cbe28607c7abe8de1870b7afdd8f4e03f5d46c11facb27adcd04

Contents?: true

Size: 117 Bytes

Versions: 11

Compression:

Stored size: 117 Bytes

Contents

module Validating
  def valid_name?(name = '')
    name.length.between?(4, 20) && name[/^[a-zа-яё]+$/i]
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
codebreaker_paratskiy-0.2.4 lib/modules/validating.rb
codebreaker_paratskiy-0.2.3 lib/modules/validating.rb
codebreaker_paratskiy-0.2.2 lib/modules/validating.rb
codebreaker_paratskiy-0.2.1 lib/modules/validating.rb
codebreaker_paratskiy-0.2.0 lib/modules/validating.rb
codebreaker_paratskiy-0.1.9 lib/modules/validating.rb
codebreaker_paratskiy-0.1.8 lib/modules/validating.rb
codebreaker_paratskiy-0.1.7 lib/modules/validating.rb
codebreaker_paratskiy-0.1.6 lib/modules/validating.rb
codebreaker_paratskiy-0.1.5 lib/modules/validating.rb
codebreaker_paratskiy-0.1.3 lib/modules/validating.rb