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