1147件ヒット
[1-100件を表示]
(0.050秒)
ライブラリ
- ビルトイン (66)
- digest (11)
- etc (11)
-
json
/ add / exception (11) - logger (11)
- mkmf (22)
-
net
/ ftp (18) -
net
/ http (66) - optparse (22)
- pathname (529)
- rake (11)
-
rake
/ packagetask (11) -
rexml
/ document (66) - rubygems (11)
-
rubygems
/ commands / which _ command (11) -
rubygems
/ custom _ require (11) -
rubygems
/ require _ paths _ builder (11) -
rubygems
/ specification (44) - shell (48)
-
shell
/ command-processor (12) -
shell
/ filter (12) - socket (44)
- tempfile (55)
- uri (33)
クラス
- Addrinfo (33)
-
Digest
:: Base (11) - Exception (11)
-
File
:: Stat (22) -
Gem
:: Commands :: WhichCommand (11) -
Gem
:: Specification (44) - IO (33)
- LoadError (11)
- Logger (11)
-
Net
:: FTP (18) -
Net
:: HTTP (11) -
Net
:: HTTPGenericRequest (33) -
Net
:: HTTPResponse (22) - OptionParser (22)
- Pathname (529)
-
REXML
:: Element (33) -
REXML
:: Elements (33) -
Rake
:: DefaultLoader (11) -
Rake
:: PackageTask (11) -
RubyVM
:: InstructionSequence (11) - Shell (48)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Tempfile (55)
- UNIXSocket (11)
-
URI
:: Generic (22) -
URI
:: HTTP (11)
モジュール
-
Gem
:: RequirePathsBuilder (11) - Kernel (44)
キーワード
- + (11)
-
/ (10) - <=> (22)
- == (11)
- === (11)
- absolute? (11)
- ascend (22)
- atime (11)
- basename (11)
- binread (11)
-
body
_ stream (11) -
body
_ stream= (11) - cd (6)
- chdir (6)
- children (11)
- chown (11)
- cleanpath (11)
- close (11)
- close! (11)
-
create
_ makefile (11) - ctime (11)
- delete (22)
-
delete
_ all (11) - descend (22)
-
dir
_ config (11) - dirname (11)
- each (11)
-
each
_ child (22) -
each
_ entry (13) -
each
_ filename (11) -
each
_ line (22) - empty? (8)
- entries (11)
- eql? (11)
-
family
_ addrinfo (22) - fdatasync (11)
- file (11)
- find (22)
- flush (11)
- fnmatch (11)
- foreach (18)
- formatter (11)
- gem (11)
-
gem
_ paths (11) -
get
_ text (11) - glob (14)
- head (11)
- join (11)
- load (11)
- mkdir (18)
- mlsd (18)
- mountpoint? (11)
-
package
_ dir _ path (11) - parent (11)
- pathconf (11)
-
program
_ name (11) -
program
_ name= (11) - pushd (6)
- pushdir (6)
-
read
_ body (22) - realdirpath (11)
- realpath (22)
- relative? (11)
-
relative
_ path _ from (11) -
request
_ uri (11) -
require
_ path (11) -
require
_ path= (11) -
require
_ paths (11) -
require
_ paths= (11) - root? (11)
- select (11)
- size? (11)
- split (11)
- sub (22)
-
sub
_ ext (11) -
system
_ path (6) -
system
_ path= (6) - text (11)
-
to
_ a (22) -
to
_ json (11) -
to
_ s (11) -
unix
_ path (11) - unlink (22)
-
write
_ require _ paths _ file _ if _ needed (11) - xpath (11)
検索結果
先頭5件
-
Kernel
# require(path) -> bool (18247.0) -
RubyGems を require すると、Kernel#require が Gem を 要求されたときにロードするように置き換えます。
...RubyGems を require すると、Kernel#require が Gem を
要求されたときにロードするように置き換えます。
再定義された Kernel#require を呼び出すと以下の事を行います。
Ruby のロードパスに存在するライブラリを指定した場合はその......く、インストールされた Gem ファイルの中から見つかった場合は、
その Gem をロードパスに登録します。
@param path ロードしたいライブラリの名前を指定します。
@return 既にロードされているライブラリを再度ロードしよう... -
Gem
:: RequirePathsBuilder # write _ require _ paths _ file _ if _ needed(spec = @spec , gem _ home = @gem _ home) (18218.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。
...必要であれば、'.require_paths' というファイルを Gem ごとに作成します。... -
URI
:: Generic # path -> String | nil (18154.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 (18130.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 (18130.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 (18120.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 (18114.0) -
UNIX ソケットのパスを返します。
...UNIX ソケットのパスを返します。
クライアント側はパスを持たないため空文字列となります。
例:
require 'socket'
UNIXServer.open("/tmp/s") {|serv|
p serv.path #=> "/tmp/s"
}... -
Gem
:: Specification # require _ path=(path) (12338.0) -
Gem::Specification#require_paths= の単数バージョンです。
...Gem::Specification#require_paths= の単数バージョンです。
@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。
@see Gem::Specification#require_paths=... -
Gem
:: Specification # require _ paths=(paths) (12324.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストをセットします。
...この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストをセットします。
@param paths この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリ... -
Gem
:: Specification # require _ path -> String (12225.0) -
Gem::Specification#require_paths の単数バージョンです。
...Gem::Specification#require_paths の単数バージョンです。
@see Gem::Specification#require_paths...