Class: FormVIIPastBase

Inherits:
Base
  • Object
show all
Defined in:
lib/arabic_conjugator/past_bases/form_VII_past_base.rb

Instance Method Summary collapse

Methods inherited from Base

#adjust_first_radical, #assimilated_base, #assimilated_defective_base, #defective_base, #doubled_base, #hollow_defective_base, #regular_base

Constructor Details

#initialize(verb) ⇒ FormVIIPastBase

Returns a new instance of FormVIIPastBase.



7
8
9
10
# File 'lib/arabic_conjugator/past_bases/form_VII_past_base.rb', line 7

def initialize(verb)
  super
  @base = "ان" + @root1 + @root2 + @root3
end

Instance Method Details

#adjust_third_radicalObject



22
23
24
# File 'lib/arabic_conjugator/past_bases/form_VII_past_base.rb', line 22

def adjust_third_radical
  @root3 = "أ"
end

#hollow_baseObject



12
13
14
15
16
17
18
19
20
# File 'lib/arabic_conjugator/past_bases/form_VII_past_base.rb', line 12

def hollow_base
  @root2 = "ا"
  @base = "ان" + @root1 + @root2 + @root3
  if [:he, :she, :they].include?(@pronoun)
    @base
  else
    "ان" + @root1 + @root3
  end
end