Class: Kanjika::Conjugator::Base
- Inherits:
-
Object
- Object
- Kanjika::Conjugator::Base
- Defined in:
- lib/kanjika/conjugator/base.rb
Constant Summary collapse
- U_ENDINGS =
"うくぐすずつづぬふぶむゆる"
- E_ENDINGS =
"えけげせぜてでねへべめれ"
- I_ENDINGS =
"いきぎしじちぢにひびみり"
- GODAN =
"五段"
- ICHIDAN =
"一段"
- SURU =
"カ変"
- KURU =
"サ変"
- NOUN_VERB =
"サ変接続"
Instance Attribute Summary collapse
-
#verb ⇒ Object
readonly
Returns the value of attribute verb.
Class Method Summary collapse
Instance Method Summary collapse
- #conjugate ⇒ Object
-
#initialize(verb) ⇒ Base
constructor
A new instance of Base.
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
#verb ⇒ Object (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
#conjugate ⇒ Object
24 25 26 |
# File 'lib/kanjika/conjugator/base.rb', line 24 def conjugate raise NotImplementedError end |