Class: Kanjika::Conjugator::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/kanjika/conjugator/base.rb

Direct Known Subclasses

Masu, Te

Constant Summary collapse

U_ENDINGS =
"うくぐすずつづぬふぶむゆる"
E_ENDINGS =
"えけげせぜてでねへべめれ"
I_ENDINGS =
"いきぎしじちぢにひびみり"
GODAN =
"五段"
ICHIDAN =
"一段"
SURU =
"カ変"
KURU =
"サ変"
NOUN_VERB =
"サ変接続"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(verb) ⇒ Base

Returns a new instance of Base.



20
21
22
# File 'lib/kanjika/conjugator/base.rb', line 20

def initialize(verb)
  @verb = verb
end

Instance Attribute Details

#verbObject (readonly)

Returns the value of attribute verb.



18
19
20
# File 'lib/kanjika/conjugator/base.rb', line 18

def verb
  @verb
end

Class Method Details

.conjugate(verb) ⇒ Object



14
15
16
# File 'lib/kanjika/conjugator/base.rb', line 14

def self.conjugate(verb)
  new(verb).conjugate
end

Instance Method Details

#conjugateObject

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/kanjika/conjugator/base.rb', line 24

def conjugate
  raise NotImplementedError
end