Module: Humanized::German::Articles

Included in:
Humanized::German
Defined in:
lib/humanized/interpolation/german.rb

Constant Summary collapse

ArticleQuery =
Query::Meta.articles

Instance Method Summary collapse

Instance Method Details

#a(humanizer, *args) ⇒ Object



27
28
29
30
31
# File 'lib/humanized/interpolation/german.rb', line 27

def a(humanizer, *args)
  Wrapper.wrap(args) do |t|
    humanizer[ArticleQuery.indefinite.optionally(x_to_genus(humanizer, t))._(x_to_numerus(humanizer, t), x_to_kasus(humanizer, t))] + ' ' + t.to_s
  end
end

#none(humanizer, *args) ⇒ Object



45
46
47
48
49
# File 'lib/humanized/interpolation/german.rb', line 45

def none(humanizer, *args)
  Wrapper.wrap(args) do |t|
    humanizer[ArticleQuery.negative.optionally(x_to_genus(humanizer, t))._(x_to_numerus(humanizer, t), x_to_kasus(humanizer, t))] + ' ' + t.to_s
  end
end

#some(humanizer, *args) ⇒ Object



39
40
41
42
43
# File 'lib/humanized/interpolation/german.rb', line 39

def some(humanizer, *args)
  Wrapper.wrap(args) do |t|
    humanizer[ArticleQuery.partitive.optionally(x_to_genus(humanizer, t))._(x_to_numerus(humanizer, t), x_to_kasus(humanizer, t))] + ' ' + t.to_s
  end
end

#the(humanizer, *args) ⇒ Object



33
34
35
36
37
# File 'lib/humanized/interpolation/german.rb', line 33

def the(humanizer, *args)
  Wrapper.wrap(args) do |t|
    humanizer[ArticleQuery.definite.optionally(x_to_genus(humanizer, t))._(x_to_numerus(humanizer, t), x_to_kasus(humanizer, t))] + ' ' + t.to_s
  end
end