1163件ヒット
[1-100件を表示]
(0.151秒)
ライブラリ
- ビルトイン (36)
- digest (12)
- etc (12)
-
json
/ add / exception (12) - mkmf (12)
-
net
/ ftp (20) -
net
/ http (72) - optparse (24)
- pathname (579)
-
rake
/ packagetask (12) -
rexml
/ document (72) -
rubygems
/ commands / which _ command (12) -
rubygems
/ custom _ require (12) -
rubygems
/ require _ paths _ builder (12) -
rubygems
/ specification (48) - shell (48)
-
shell
/ command-processor (12) -
shell
/ filter (12) - socket (48)
- tempfile (60)
- uri (36)
クラス
- Addrinfo (36)
-
Digest
:: Base (12) - Exception (12)
-
File
:: Stat (24) -
Gem
:: Commands :: WhichCommand (12) -
Gem
:: Specification (48) - IO (12)
- LoadError (12)
-
Net
:: FTP (20) -
Net
:: HTTP (12) -
Net
:: HTTPGenericRequest (36) -
Net
:: HTTPResponse (24) - OptionParser (24)
- Pathname (579)
-
REXML
:: Element (36) -
REXML
:: Elements (36) -
Rake
:: PackageTask (12) - Shell (48)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Tempfile (60)
- UNIXSocket (12)
-
URI
:: Generic (24) -
URI
:: HTTP (12)
モジュール
-
Gem
:: RequirePathsBuilder (12) - Kernel (24)
キーワード
- + (12)
-
/ (11) - <=> (24)
- == (12)
- === (12)
- absolute? (12)
- ascend (24)
- atime (12)
- basename (12)
- binread (12)
-
body
_ stream (12) -
body
_ stream= (12) - cd (6)
- chdir (6)
- children (12)
- chown (12)
- cleanpath (12)
- close (12)
- close! (12)
-
create
_ makefile (12) - ctime (12)
- delete (24)
-
delete
_ all (12) - descend (24)
- dirname (12)
- each (12)
-
each
_ child (24) -
each
_ entry (15) -
each
_ filename (12) -
each
_ line (24) - empty? (9)
- entries (12)
- eql? (12)
-
family
_ addrinfo (24) - file (12)
- find (24)
- fnmatch (12)
- foreach (18)
-
gem
_ paths (12) -
get
_ text (12) - glob (16)
- head (12)
- join (12)
- mkdir (18)
- mlsd (20)
- mountpoint? (12)
-
package
_ dir _ path (12) - parent (12)
- pathconf (12)
-
program
_ name (12) -
program
_ name= (12) - pushd (6)
- pushdir (6)
-
read
_ body (24) - realdirpath (12)
- realpath (24)
- relative? (12)
-
relative
_ path _ from (12) -
request
_ uri (12) -
require
_ path (12) -
require
_ path= (12) -
require
_ paths (12) -
require
_ paths= (12) - root? (12)
- select (12)
- size? (12)
- split (12)
- sub (24)
-
sub
_ ext (12) -
system
_ path (6) -
system
_ path= (6) - text (12)
-
to
_ a (12) -
to
_ json (12) -
to
_ s (12) -
unix
_ path (12) - unlink (24)
-
write
_ require _ paths _ file _ if _ needed (12) - xpath (12)
検索結果
先頭5件
-
Gem
:: RequirePathsBuilder # write _ require _ paths _ file _ if _ needed(spec = @spec , gem _ home = @gem _ home) (27318.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。
...必要であれば、'.require_paths' というファイルを Gem ごとに作成します。... -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (24578.0) -
Pathname.new(File.expand_path(self.to_s, *args)) と同じです。
...Pathname.new(File.expand_path(self.to_s, *args)) と同じです。
@param default_dir self が相対パスであれば default_dir を基準に展開されます。
//emlist[例][ruby]{
require "pathname"
path = Pathname("testfile")
Pathname.pwd # => #<Pathname:/path/to>
path.expand_......path # => #<Pathname:/path/to/testfile>
path.expand_path("../") # => #<Pathname:/path/testfile>
//}
@see File.expand_path... -
URI
:: Generic # path -> String | nil (24284.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 #=> nil
p URI......('ftp://example.com/foo').path #=> 'foo'
p URI('ftp://example.com/%2Ffoo').path #=> '/foo'... -
Tempfile
# path -> String | nil (24232.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 (24230.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 (24230.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"
//}... -
UNIXSocket
# path -> String (24220.0) -
UNIX ソケットのパスを返します。
...UNIX ソケットのパスを返します。
クライアント側はパスを持たないため空文字列となります。
例:
require 'socket'
UNIXServer.open("/tmp/s") {|serv|
p serv.path #=> "/tmp/s"
}... -
Rake
:: PackageTask # package _ dir _ path -> String (21314.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
//}... -
Gem
:: Specification # require _ path=(path) (18538.0) -
Gem::Specification#require_paths= の単数バージョンです。
...Gem::Specification#require_paths= の単数バージョンです。
@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。
@see Gem::Specification#require_paths=...