Class: FormXPastBase
- Inherits:
-
Base
- Object
- Base
- FormXPastBase
show all
- Defined in:
- lib/arabic_conjugator/past_bases/form_X_past_base.rb
Instance Method Summary
collapse
Methods inherited from Base
#adjust_first_radical, #assimilated_base, #assimilated_defective_base, #defective_base, #doubled_base, #regular_base
Constructor Details
Returns a new instance of FormXPastBase.
7
8
9
10
|
# File 'lib/arabic_conjugator/past_bases/form_X_past_base.rb', line 7
def initialize(verb)
super
@base = "است" + @root1 + @root2 + @root3
end
|
Instance Method Details
#adjust_second_radical ⇒ Object
32
33
34
|
# File 'lib/arabic_conjugator/past_bases/form_X_past_base.rb', line 32
def adjust_second_radical
@root2 = "أ"
end
|
#adjust_third_radical ⇒ Object
36
37
38
|
# File 'lib/arabic_conjugator/past_bases/form_X_past_base.rb', line 36
def adjust_third_radical
@root3 = "أ"
end
|
#hollow_base ⇒ Object
12
13
14
15
16
17
18
19
|
# File 'lib/arabic_conjugator/past_bases/form_X_past_base.rb', line 12
def hollow_base
@root2 = "ا"
if [:he, :she, :they].include?(@pronoun)
@base
else
"است" + @root1 + @root3
end
end
|
#hollow_defective_base ⇒ Object
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/arabic_conjugator/past_bases/form_X_past_base.rb', line 21
def hollow_defective_base
@base = @base[0...-1]
if @pronoun == :he
@base + "ا"
elsif [:she, :they].include?(@pronoun)
@base
else
@base + "ي"
end
end
|