るりまサーチ

最速Rubyリファレンスマニュアル検索!
337件ヒット [1-100件を表示] (0.033秒)

別のキーワード

  1. stringio read
  2. _builtin read
  3. io read
  4. csv read
  5. tuple read

検索結果

<< 1 2 3 ... > >>

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

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

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


@see IO.read...

Thread::Backtrace::Location#path -> String (21114.0)

self が表すフレームのファイル名を返します。

...self が表すフレームのファイル名を返します。

例: Thread::Backtrace::Location の例1を用いた例

//emlist[][ruby]{
loc = c(0..1).first
loc.path # => "caller_locations.rb"
//}

@see Thread::Backtrace::Location#absolute_path...

ARGF.class#path -> String (15108.0)

現在開いている処理対象のファイル名を返します。

...は - を返します。
組み込み変数 $FILENAME と同じです。

$ echo "foo" > foo
$ echo "bar" > bar
$ echo "glark" > glark

$ ruby argf.rb foo bar glark

ARGF.filename # => "foo"
ARGF.read(5) # => "foo\nb"
ARGF.filename # => "bar"
ARGF.skip
ARGF.filename # => "glark"...

Pathname#readlink -> Pathname (9201.0)

Pathname.new(File.readlink(self.to_s)) と同じです。

...Pathname.new(File.readlink(self.to_s)) と同じです。


@see File.readlink...

Thread::Backtrace::Location#absolute_path -> String (9132.0)

self が表すフレームの絶対パスを返します。

...][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end

Foo.new(0..2).locations.map do |call|
puts call.absolute_path
end

# => /path/to/foo.rb
# /path/to/foo.rb
# /path/to/foo.rb
//}

@see Thread::Backtrace::Location#path...

絞り込み条件を変える

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

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

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

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

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

@see IO.binread...

Pathname#readable? -> bool (9101.0)

FileTest.readable?(self.to_s) と同じです。

...FileTest.readable?(self.to_s) と同じです。


@see FileTest.#readable?...

Pathname#readable_real? -> bool (9101.0)

FileTest.readable_real?(self.to_s) と同じです。

...FileTest.readable_real?(self.to_s) と同じです。


@see FileTest.#readable_real?...

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

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

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


@see IO.readlines...

Pathname#world_readable? -> bool (9101.0)

FileTest.world_readable?(self.to_s) と同じです。

...FileTest.world_readable?(self.to_s) と同じです。


@see FileTest.#world_readable?...

絞り込み条件を変える

<< 1 2 3 ... > >>