class CzechName::Database

Attributes

database[R]

Public Class Methods

new(database_path) click to toggle source
# File lib/czech_name/database.rb, line 7
def initialize(database_path)
  @database = CSV.open(database_path).to_a.to_h
end

Public Instance Methods

fifth_case(name) click to toggle source
# File lib/czech_name/database.rb, line 15
def fifth_case(name)
  database[name]
end
Also aliased as: vocative
include?(name) click to toggle source
# File lib/czech_name/database.rb, line 11
def include?(name)
  database.key?(name)
end
vocative(name)
Alias for: fifth_case