276件ヒット
[1-100件を表示]
(0.101秒)
別のキーワード
ライブラリ
- ビルトイン (12)
-
json
/ add / exception (12) - logger (12)
- mkmf (12)
-
net
/ http (36) - optparse (12)
- pathname (48)
-
rake
/ packagetask (12) -
rexml
/ document (24) -
rubygems
/ specification (24) - socket (24)
- tempfile (12)
- uri (36)
クラス
- Addrinfo (12)
- Exception (12)
-
Gem
:: Specification (24) - LoadError (12)
- Logger (12)
-
Net
:: HTTPGenericRequest (12) -
Net
:: HTTPResponse (24) - OptionParser (12)
- Pathname (48)
-
REXML
:: Element (24) -
Rake
:: PackageTask (12) - Tempfile (12)
- UNIXSocket (12)
-
URI
:: Generic (24) -
URI
:: HTTP (12)
モジュール
- Kernel (12)
キーワード
- binread (12)
-
dir
_ config (12) - formatter (12)
-
package
_ dir _ path (12) -
program
_ name (12) -
read
_ body (24) -
request
_ uri (12) -
require
_ path (12) -
require
_ paths (12) - select (12)
- sub (24)
- text (12)
-
to
_ json (12) -
to
_ s (12) -
unix
_ path (12) - xpath (12)
検索結果
先頭5件
-
URI
:: Generic # path -> String | nil (18255.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'... -
LoadError
# path -> String | nil (18231.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 を返します。... -
Net
:: HTTPGenericRequest # path -> String (18231.0) -
リクエストする path を文字列で返します。
...リクエストする path を文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.path # => "/index.html"
//}... -
Tempfile
# path -> String | nil (18221.0) -
テンポラリファイルのパス名を返します。
...テンポラリファイルのパス名を返します。
Tempfile#close! を実行後だった場合にはnilを返します。
require "tempfile"
tf = Tempfile.new("hoo")
p tf.path # => "/tmp/hoo.10596.0"
tf.close!
p tf.path # => nil... -
UNIXSocket
# path -> String (18215.0) -
UNIX ソケットのパスを返します。
...UNIX ソケットのパスを返します。
クライアント側はパスを持たないため空文字列となります。
例:
require 'socket'
UNIXServer.open("/tmp/s") {|serv|
p serv.path #=> "/tmp/s"
}... -
Gem
:: Specification # require _ path -> String (12326.0) -
Gem::Specification#require_paths の単数バージョンです。
...Gem::Specification#require_paths の単数バージョンです。
@see Gem::Specification#require_paths... -
Gem
:: Specification # require _ paths -> [String] (12319.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストを返します。
...この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストを返します。... -
Addrinfo
# unix _ path -> String (6231.0) -
Unix domain socket の path を文字列で返します。
...Unix domain socket の path を文字列で返します。
require 'socket'
Addrinfo.unix("/tmp/sock").unix_path #=> "/tmp/sock"
@raise SocketError アドレスが Unix domain socket のものでない場合に発生します... -
Rake
:: PackageTask # package _ dir _ path -> String (6215.0) -
パッケージに含むファイルを配置するディレクトリを返します。
...パッケージに含むファイルを配置するディレクトリを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_dir_path # => "pkg/sample-1.0.0"
end
//}...