2308件ヒット
[1-100件を表示]
(0.072秒)
別のキーワード
ライブラリ
- ビルトイン (763)
- csv (99)
- etc (22)
-
irb
/ magic-file (22) - logger (11)
- mkmf (33)
-
net
/ ftp (18) -
net
/ http (308) -
net
/ pop (11) - open-uri (22)
- openssl (11)
- optparse (11)
- pathname (277)
- rake (11)
-
rake
/ packagetask (11) -
rexml
/ document (88) -
rubygems
/ commands / unpack _ command (11) -
rubygems
/ gem _ path _ searcher (11) -
rubygems
/ remote _ fetcher (22) -
rubygems
/ source _ info _ cache (11) - shell (24)
-
shell
/ command-processor (12) -
shell
/ filter (12) - socket (154)
- tempfile (66)
- uri (22)
-
win32
/ resolv (11)
クラス
- CSV (88)
- Dir (234)
- Exception (11)
- File (110)
-
File
:: Stat (22) -
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: GemPathSearcher (11) -
Gem
:: RemoteFetcher (22) -
Gem
:: SourceInfoCache (11) - IO (122)
- LoadError (11)
- Logger (11)
-
Net
:: FTP (18) -
Net
:: HTTP (264) -
Net
:: HTTPGenericRequest (22) -
Net
:: HTTPResponse (22) -
Net
:: POP3 (11) -
OpenSSL
:: SSL :: SSLContext (11) - OptionParser (11)
- Pathname (277)
- Proc (11)
-
RDoc
:: Options (11) -
REXML
:: Element (33) -
REXML
:: Elements (33) -
REXML
:: XPath (22) -
Rake
:: PackageTask (11) -
RubyVM
:: InstructionSequence (11) - Shell (24)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Socket (55)
- String (11)
- Tempfile (66)
- Thread (22)
-
Thread
:: Backtrace :: Location (33) - TracePoint (22)
- UNIXServer (44)
- UNIXSocket (55)
-
URI
:: Generic (11) -
Win32
:: Resolv (11)
オブジェクト
-
IRB
:: MagicFile (22)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - <=> (22)
- CSV (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (3) - Options (11)
-
PATH
_ SEPARATOR (11) - Rubyの起動 (11)
- Ruby用語集 (11)
-
absolute
_ path (22) - ascend (22)
-
backtrace
_ locations (22) - binread (22)
- binwrite (11)
-
body
_ stream (11) -
body
_ stream= (11) -
ca
_ path (22) -
caller
_ locations (22) - certs (11)
- cgi (11)
- chdir (44)
- collect (11)
- confstr (11)
- create (22)
-
def
_ system _ command (6) - descend (22)
- each (22)
-
each
_ child (50) -
each
_ element (11) -
each
_ entry (13) -
each
_ filename (11) -
each
_ line (22) - empty? (16)
- exec (44)
- fdatasync (11)
-
fetch
_ path (11) - find (33)
-
find
_ executable (11) - first (11)
- flush (11)
- fnmatch (11)
- fnmatch? (11)
-
for
_ fd (2) - foreach (95)
- formatter (11)
- get (22)
- get2 (22)
-
get
_ hosts _ path (11) -
get
_ path (11) -
get
_ text (11) - glob (36)
- head (11)
- head2 (22)
- home (22)
- inject (11)
- inspect (22)
-
install
_ system _ commands (6) - irb (11)
- libpathflag (11)
-
link
_ command (11) - logger (11)
- mlsd (18)
-
net
/ http (11) - new (90)
- open (242)
-
open
_ uri (22) -
open
_ uri _ or _ path (11) - opendir (22)
-
package
_ dir _ path (11) -
page
_ dir (11) - patch (22)
- pathconf (11)
- pathmap (11)
- post (22)
- post2 (22)
-
program
_ name (11) - put2 (22)
-
rake
/ gempackagetask (11) - rdoc (11)
- read (55)
-
read
_ body (22) - readlines (11)
-
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
request
_ put (22) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 8 . 5 feature (11) -
ruby 1
. 9 feature (11) - rubygems (11)
-
rubygems
/ security (11) -
set
_ backtrace (11) - size? (22)
-
source
_ location (11) - spawn (44)
- split (11)
- sub (22)
- system (44)
- table (11)
- text (11)
-
to
_ path (24) -
to
_ s (11) -
try
_ file (11) - unix (22)
-
unix
_ server _ loop (11) -
unix
_ server _ socket (22) -
webrick
/ cgi (11) -
world
_ readable? (22)
検索結果
先頭5件
-
URI
:: Generic # path -> String | nil (18348.0) -
自身の path を文字列で返します。設定されていない場合は nil を返します。
...自身の path を文字列で返します。設定されていない場合は nil を返します。
require 'uri'
p URI.parse('http://example.com/hoge').path #=> "/hoge"
p URI.parse('http://example.com').path #=> ""
p URI.parse('mailto:nospam@localhost').path #=> n......il
p URI('ftp://example.com/foo').path #=> 'foo'
p URI('ftp://example.com/%2Ffoo').path #=> '/foo'... -
IO
# path -> String | nil (18328.0) -
IO に関連付けられたパスを返します。IO がパスに関連付けられていない場合は nil を返します。
...が返すパスがファイルシステム上に存在することは保証されていません。
//emlist[例][ruby]{
p STDIN.path # => "<STDIN>"
p IO.new(IO.sysopen("/")).path # => "/"
p IO.new(IO.sysopen("/"), path: "foo").path # => "foo"
//}... -
Tempfile
# path -> String | nil (18314.0) -
テンポラリファイルのパス名を返します。
...テンポラリファイルのパス名を返します。
Tempfile#close! を実行後だった場合にはnilを返します。
require "tempfile"
tf = Tempfile.new("hoo")
p tf.path # => "/tmp/hoo.10596.0"
tf.close!
p tf.path # => nil... -
LoadError
# path -> String | nil (18308.0) -
Kernel.#require や Kernel.#load に失敗したパスを返します。
...Kernel.#require や Kernel.#load に失敗したパスを返します。
begin
require 'this/file/does/not/exist'
rescue LoadError => e
e.path # => 'this/file/does/not/exist'
end
パスが定まらない場合は nil を返します。... -
File
# path -> String (18244.0) -
オープン時に使用したパスを文字列で返します。
...作成されていたりする場合です。
//emlist[例][ruby]{
File.open("testfile") {|f| f.path } #=> "testfile"
File.open("/tmp/../tmp/xxx", "w") {|f| f.path } #=> "/tmp/../tmp/xxx"
File.open("/tmp", File::RDWR | File::TMPFILE){|f| f.path } #=> "/tmp"
//}......発生します。
//emlist[例][ruby]{
File.open("testfile") {|f| f.path } #=> "testfile"
File.open("/tmp/../tmp/xxx", "w") {|f| f.path } #=> "/tmp/../tmp/xxx"
File.open("/tmp", File::RDWR | File::TMPFILE){|f| f.path } # IOError: File is unnamed (TMPFILE?)
//}... -
Dir
# path -> String (18226.0) -
オープンしているディレクトリのパス名を文字列で返します。
...オープンしているディレクトリのパス名を文字列で返します。
//emlist[例][ruby]{
Dir.open("..") do |d|
d.path # => ".."
d.to_path # => ".."
end
//}... -
TracePoint
# path -> String (18225.0) -
イベントが発生したファイルのパスを返します。
...トが発生したファイルのパスを返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.path # => "/path/to/test.rb"
end
trace.enable
foo 1
//}... -
UNIXSocket
# path -> String (18213.0) -
UNIX ソケットのパスを返します。
...UNIX ソケットのパスを返します。
クライアント側はパスを持たないため空文字列となります。
例:
require 'socket'
UNIXServer.open("/tmp/s") {|serv|
p serv.path #=> "/tmp/s"
}... -
Kernel
# libpathflag(libpath = $ DEFLIBPATH| $ LIBPATH) -> String (6616.0) -
与えられた libpath を -L 付きの文字列に変換して返します。
...与えられた libpath を -L 付きの文字列に変換して返します。
@param libpath LIBPATH に指定する値を指定します。... -
File
:: PATH _ SEPARATOR -> ";" | ":" (6334.0) -
PATH 環境変数の要素のセパレータです。UNIX では ":" MS-DOS な どでは ";" です。
...
PATH 環境変数の要素のセパレータです。UNIX では ":" MS-DOS な
どでは ";" です。...