337件ヒット
[1-100件を表示]
(0.033秒)
ライブラリ
- ビルトイン (110)
-
net
/ http (132) - pathname (77)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
-
ARGF
. class (22) - IO (22)
-
Net
:: HTTP (88) -
Net
:: HTTPGenericRequest (22) -
Net
:: HTTPResponse (22) - Pathname (77)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Thread (22)
-
Thread
:: Backtrace :: Location (44)
キーワード
-
absolute
_ path (11) -
backtrace
_ locations (22) - binread (11)
-
body
_ stream (11) -
body
_ stream= (11) - fdatasync (11)
- filename (11)
- flush (11)
- get2 (22)
- inspect (11)
- post2 (22)
-
read
_ body (22) - readable? (11)
-
readable
_ real? (11) - readlines (11)
- readlink (29)
-
request
_ get (22) -
request
_ post (22) -
to
_ s (11) -
world
_ readable? (11)
検索結果
先頭5件
-
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"
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(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?...