diff --git a/lib/commands/command.rb b/lib/commands/command.rb index cfdc7b6..f6f47c0 100644 --- a/lib/commands/command.rb +++ b/lib/commands/command.rb @@ -11,7 +11,6 @@ module Commands class Command def self.inherited(klass) - p klass Commands.register_command klass end diff --git a/lib/verb.rb b/lib/verb.rb index e93f290..b5b11ac 100644 --- a/lib/verb.rb +++ b/lib/verb.rb @@ -21,11 +21,11 @@ class KanaKanji @kanji = kanji || kana end - def [] (index) + def [](index) self.class.new kana[index], kanji[index] end - def + (other) + def +(other) case other when String self.class.new kana + other, kanji + other