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