るりまサーチ

最速Rubyリファレンスマニュアル検索!
99件ヒット [1-99件を表示] (0.093秒)
トップページ > クエリ:I[x] > クエリ:String[x] > ライブラリ:pathname[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. csv to_i

クラス

キーワード

検索結果

Pathname#binwrite(string, offset=nil) -> Integer (6403.0)

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

...
I
O.binwrite(self.to_s, *args)と同じです。


@see IO.binwrite...

Pathname#binread(*args) -> String | nil (6303.0)

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

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

//emlist[例][ruby]{
require "pathname"

pathname
= Pathname("testfile")
pathname
.binread # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
pathname
.binread(20) # => "This is line one\nThi"
pathname
.binread(2...
...0, 10) # => "ne one\nThis is line "
//}

@see IO.binread...

Pathname#readlines(*args) -> [String] (6303.0)

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

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


@see IO.readlines...

Pathname#write(string, offset=nil, **opts) -> Integer (6209.0)

...

I
O.write(self.to_s, string, offset, **opts)と同じです。

@see IO.write...

Pathname#extname -> String (203.0)

File.extname(self.to_s) と同じです。

...File.extname(self.to_s) と同じです。


@see File.extname...

絞り込み条件を変える

Pathname#ftype -> String (203.0)

File.ftype(self.to_s) と同じです。

...File.ftype(self.to_s) と同じです。


@see File.ftype...

Pathname#read(*args) -> String | nil (203.0)

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

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


@see IO.read...

Pathname#to_path -> String (203.0)

File.open などの引数に渡す際に呼ばれるメソッドです。 Pathname オブジェ クトにおいては、 to_s と同じです。

...File.open などの引数に渡す際に呼ばれるメソッドです。 Pathname オブジェ
クトにおいては、 to_s と同じです。


@see Pathname#to_s...

Pathname#to_s -> String (203.0)

パス名を文字列で返します。

...パス名を文字列で返します。


//emlist[例][ruby]{
require 'pathname'

path = Pathname.new("/tmp/hogehoge")
File.open(path)
//}...