Skip to content

IO#write は単一引数でなくなった #403

Description

@topstone

普通に narou.rb を使っている分には問題ないのですが、-W2 で警告を表示すると、warning: Narou::Logger#write is outdated interface which accepts just one argument と表示されます。

推測ですが、 IO#write の引数が Ruby 2.4 まで write(str)Ruby 2.5 から write(*str) になったことが影響しているように見えます。

修正しなくても動作しますが、一応ご報告まで。(この issue は close していただいて構いません。)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions