Class: FormIIIPresentBase
- Inherits:
-
Base
- Object
- Base
- FormIIIPresentBase
show all
- Defined in:
- lib/arabic_conjugator/present_bases/form_III_present_base.rb
Instance Method Summary
collapse
Methods inherited from Base
#assimilated_base, #assimilated_defective_base, #doubled_base, #hollow_base, #hollow_defective_base, #regular_base
Constructor Details
Returns a new instance of FormIIIPresentBase.
5
6
7
8
|
# File 'lib/arabic_conjugator/present_bases/form_III_present_base.rb', line 5
def initialize(verb)
super
@base = @root1 + "ا" + @root2 + @root3
end
|
Instance Method Details
#adjust_first_radical ⇒ Object
18
19
20
|
# File 'lib/arabic_conjugator/present_bases/form_III_present_base.rb', line 18
def adjust_first_radical
@root1 = "ؤ"
end
|
#adjust_second_radical ⇒ Object
22
23
24
|
# File 'lib/arabic_conjugator/present_bases/form_III_present_base.rb', line 22
def adjust_second_radical
@root2 = "ئ"
end
|
#adjust_third_radical ⇒ Object
26
27
28
|
# File 'lib/arabic_conjugator/present_bases/form_III_present_base.rb', line 26
def adjust_third_radical
@root3 = "ئ"
end
|
#defective_base ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/arabic_conjugator/present_bases/form_III_present_base.rb', line 10
def defective_base
if [:you_pl, :they, :you_f].include?(@pronoun)
@base[0...-1]
else
@base[0...-1] + "ي"
end
end
|