class Katsuyou::VerbStem
Public Class Methods
for(text, conjugation_type)
click to toggle source
# File lib/katsuyou/verb_stem.rb, line 3 def self.for(text, conjugation_type) if conjugation_type.code == "v5r-i" AruVerbStem.new(text, conjugation_type) elsif conjugation_type.code == "vk" KuruVerbStem.new(text, conjugation_type) elsif conjugation_type.category == :suru_verb SuruVerbStem.new(text, conjugation_type) else new(text, conjugation_type) end end
new(text, conjugation_type)
click to toggle source
# File lib/katsuyou/verb_stem.rb, line 15 def initialize(text, conjugation_type) @stem = text[0...-1] @conjugation_type = conjugation_type end