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