Class: FormVPastBase
- Inherits:
-
Base
- Object
- Base
- FormVPastBase
show all
- Defined in:
- lib/arabic_conjugator/past_bases/form_V_past_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
Returns a new instance of FormVPastBase.
7
8
9
10
|
# File 'lib/arabic_conjugator/past_bases/form_V_past_base.rb', line 7
def initialize(verb)
super
@base = "ت" + @root1 + @root2 + "ّ" + @root3
end
|
Instance Method Details
#adjust_second_radical ⇒ Object
27
28
29
|
# File 'lib/arabic_conjugator/past_bases/form_V_past_base.rb', line 27
def adjust_second_radical
@root2 = "أ"
end
|
#adjust_third_radical ⇒ Object
31
32
33
|
# File 'lib/arabic_conjugator/past_bases/form_V_past_base.rb', line 31
def adjust_third_radical
@root3 = "أ"
end
|
#defective_base ⇒ Object
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/arabic_conjugator/past_bases/form_V_past_base.rb', line 12
def defective_base
if @pronoun == :he
return @base[0...-1] + "ا" if @root3 == "و"
@base[0...-1] + "ى"
elsif [:she, :they].include?(@pronoun)
@base[0...-1]
else
@base
end
end
|
#doubled_base ⇒ Object
23
24
25
|
# File 'lib/arabic_conjugator/past_bases/form_V_past_base.rb', line 23
def doubled_base
@base
end
|