Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

いっつもこういうところでハマる(未解決)

./Dict.rb:68:in `initialize': wrong # of arguments(1 for 3) (ArgumentError)

Dicr.rb の 68 行目は次。

centerphrase = Entry.new(getCurrentLine(center)).getPhrase

Entry クラスの initialize メソッドは次。

def initialize(lines)

lines という名前の仮引数だけど、内容は改行を含む文字列。多分見当違いのところ見てウンウン唸ってる、ってことなんだろうなぁ。