class Katsuyou::VerbEnding
Public Class Methods
for(type)
click to toggle source
# File lib/katsuyou/verb_ending.rb, line 13 def self.for(type) case type.category when :godan_verb then GodanVerbEnding.new(type) when :ichidan_verb then IchidanVerbEnding.new(type) when :kuru_verb then KuruVerbEnding.new(type) when :suru_verb then SuruVerbEnding.new(type) end end
new(type)
click to toggle source
# File lib/katsuyou/verb_ending.rb, line 22 def initialize(type) @type = type end