Class: FormXPresentBase

Inherits:
Base
  • Object
show all
Defined in:
lib/arabic_conjugator/present_bases/form_X_present_base.rb

Instance Method Summary collapse

Methods inherited from Base

#adjust_first_radical, #assimilated_base, #assimilated_defective_base, #hollow_base, #hollow_defective_base, #regular_base

Constructor Details

#initialize(verb) ⇒ FormXPresentBase

Returns a new instance of FormXPresentBase.



5
6
7
8
# File 'lib/arabic_conjugator/present_bases/form_X_present_base.rb', line 5

def initialize(verb)
  super
  @base = "ست" + @root1 + @root2 + @root3
end

Instance Method Details

#adjust_second_radicalObject



22
23
24
# File 'lib/arabic_conjugator/present_bases/form_X_present_base.rb', line 22

def adjust_second_radical
  @root2 = "أ"
end

#adjust_third_radicalObject



26
27
28
# File 'lib/arabic_conjugator/present_bases/form_X_present_base.rb', line 26

def adjust_third_radical
  @root3 = "ئ"
end

#defective_baseObject



14
15
16
17
18
19
20
# File 'lib/arabic_conjugator/present_bases/form_X_present_base.rb', line 14

def defective_base
  if [:you_pl, :they, :you_f].include?(@pronoun)
    @base[0...-1]
  else
    @base
  end
end

#doubled_baseObject



10
11
12
# File 'lib/arabic_conjugator/present_bases/form_X_present_base.rb', line 10

def doubled_base
  @base[0...-1] + "ّ"
end