Ruby 2.2.0 リファレンスマニュアル > ライブラリ一覧 > pathnameライブラリ > Pathnameクラス > write

instance method Pathname#write

write(string, offset=nil, opt={}) -> Integer[permalink][rdoc]

IO.write(self.to_s, *args)と同じです。

[SEE_ALSO] IO.write