Sha256: 5152af59f83cd0cfa236e4b7329a8f919523f16ba048ce54a5e9f8a7dc52f8f0

Contents?: true

Size: 242 Bytes

Versions: 5

Compression:

Stored size: 242 Bytes

Contents

module OSU
  # Validates a name.#
  class NameN
    VALID_NAME_N = /\A(?<name_n>[a-z]([a-z-]*[a-z])?\.[1-9]\d*)\z/i

    def self.valid?(name_n)
      case name_n
      when VALID_NAME_N then true
      else false
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
osu_person-0.3 lib/osu/name_n.rb
osu_person-0.2.2 lib/osu/name_n.rb
osu_person-0.2.1 lib/osu/name_n.rb
osu_person-0.2.0 lib/osu/name_n.rb
osu_person-0.1.0 lib/osu/name_n.rb