2184件ヒット
[1-100件を表示]
(0.032秒)
ライブラリ
- ビルトイン (196)
- csv (88)
- digest (22)
- etc (22)
- fileutils (22)
-
json
/ add / exception (11) - logger (11)
- mkmf (22)
-
net
/ ftp (18) -
net
/ http (88) - open-uri (22)
- optparse (22)
- pathname (595)
- rake (33)
-
rake
/ packagetask (11) -
rexml
/ document (99) - rubygems (11)
-
rubygems
/ commands / which _ command (11) -
rubygems
/ custom _ require (11) -
rubygems
/ require _ paths _ builder (22) -
rubygems
/ specification (55) - shell (78)
-
shell
/ command-processor (12) -
shell
/ filter (12) - socket (209)
- tempfile (110)
- uri (132)
-
win32
/ resolv (11)
クラス
- Addrinfo (44)
- CSV (77)
-
Digest
:: Base (22) - Dir (74)
- Exception (11)
- File (11)
-
File
:: Stat (22) -
Gem
:: Commands :: WhichCommand (11) -
Gem
:: Specification (55) - IO (33)
- LoadError (11)
- Logger (11)
-
Net
:: FTP (18) -
Net
:: HTTP (33) -
Net
:: HTTPGenericRequest (33) -
Net
:: HTTPResponse (22) - OptionParser (22)
- Pathname (584)
-
REXML
:: Element (33) -
REXML
:: Elements (33) -
REXML
:: XPath (33) -
Rake
:: DefaultLoader (11) -
Rake
:: PackageTask (11) - RubyVM (1)
-
RubyVM
:: InstructionSequence (11) - Shell (78)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Socket (66)
- Tempfile (110)
- UNIXServer (44)
- UNIXSocket (55)
-
URI
:: FTP (33) -
URI
:: Generic (33) -
URI
:: HTTP (33) -
WEBrick
:: Cookie (22) -
Win32
:: Resolv (11)
モジュール
キーワード
-
$ -I (11) -
$ : (11) -
$ LOAD _ PATH (11) - + (11)
-
/ (10) - <=> (22)
- == (11)
- === (11)
- CSV (11)
-
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) - Pathname (11)
- RequirePathsBuilder (11)
- Rubyの起動 (11)
- Ruby用語集 (11)
- absolute? (11)
- application (11)
- application= (11)
- ascend (22)
- atime (11)
-
attribute
_ alias _ singular (11) - basename (11)
- binread (11)
-
body
_ stream (11) -
body
_ stream= (11) - build (44)
- cd (12)
- cgi (11)
- chdir (6)
- children (11)
- chown (11)
- cleanpath (11)
- close (11)
- close! (11)
- component (11)
- confstr (11)
- create (22)
-
create
_ makefile (11) - ctime (11)
-
def
_ system _ command (6) -
default
_ system _ path (6) -
default
_ system _ path= (6) - delete (22)
-
delete
_ all (11) - descend (22)
-
dir
_ config (11) - dirname (11)
-
drb
/ ssl (11) - each (22)
-
each
_ child (22) -
each
_ entry (13) -
each
_ filename (11) -
each
_ line (22) - empty? (16)
- entries (11)
- eql? (11)
-
family
_ addrinfo (22) - fdatasync (11)
- file (22)
- find (33)
- first (11)
- flush (11)
- fnmatch (11)
- foreach (29)
- formatter (11)
- gem (11)
-
gem
_ paths (11) -
get
_ hosts _ path (11) -
get
_ print (22) -
get
_ text (11) - getwd (11)
- glob (36)
- head (11)
-
install
_ system _ commands (6) - irb (11)
- join (22)
- load (11)
- logger (11)
- match (11)
- mkdir (18)
- mkpath (11)
- mlsd (18)
- mountpoint? (11)
-
net
/ http (11) - new (99)
- open (154)
-
open
_ uri (22) -
pack
_ sockaddr _ un (11) -
package
_ dir _ path (11) - parent (11)
- parse (22)
- pathconf (11)
-
program
_ name (11) -
program
_ name= (11) - pushd (6)
- pushdir (6)
- pwd (11)
-
rake
/ gempackagetask (11) - rdoc (11)
- read (11)
-
read
_ body (22) - readlines (11)
- realdirpath (11)
- realpath (22)
- relative? (11)
-
relative
_ path _ from (11) -
remove
_ entry (11) -
request
_ uri (11) -
require
_ path (11) -
require
_ path= (11) -
require
_ paths (11) -
require
_ paths= (11) -
require
_ relative (11) -
resolve
_ feature _ path (1) - root? (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) - rubygems (11)
-
rubygems
/ require _ paths _ builder (11) - select (11)
- size? (11)
-
sockaddr
_ un (11) - split (22)
- sub (22)
-
sub
_ ext (11) -
system
_ path (6) -
system
_ path= (6) -
test
/ unit (1) - text (11)
-
to
_ a (22) -
to
_ json (11) -
to
_ s (11) - unix (33)
-
unix
_ path (11) -
unix
_ server _ socket (22) - unlink (22)
-
webrick
/ cgi (11) -
write
_ require _ paths _ file _ if _ needed (11) - xpath (11)
- セキュリティモデル (11)
検索結果
先頭5件
-
Kernel
# require(path) -> bool (18246.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) (18217.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。
...必要であれば、'.require_paths' というファイルを Gem ごとに作成します。... -
File
. path(filename) -> String (18183.0) -
指定されたファイル名を文字列で返します。filename が文字列でない場合は、to_path メソッドを呼びます。
...は、to_path メソッドを呼びます。
@param filename ファイル名を表す文字列か to_path メソッドが定義されたオブジェクトを指定します。
//emlist[例][ruby]{
require 'pathname'
class MyPath
def initialize(path)
@path = path
end
def to_path
File.......absolute_path(@path)
end
end
File.path("/dev/null") # => "/dev/null"
File.path(Pathname("/tmp")) # => "/tmp"
File.path(MyPath.new(".")) # => "/Users/user/projects/txt"
//}... -
URI
:: Generic # path -> String | nil (18153.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 (18129.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 (18129.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 (18119.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 (18113.0) -
UNIX ソケットのパスを返します。
...UNIX ソケットのパスを返します。
クライアント側はパスを持たないため空文字列となります。
例:
require 'socket'
UNIXServer.open("/tmp/s") {|serv|
p serv.path #=> "/tmp/s"
}... -
Gem
:: Specification # require _ path=(path) (12337.0) -
Gem::Specification#require_paths= の単数バージョンです。
...Gem::Specification#require_paths= の単数バージョンです。
@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。
@see Gem::Specification#require_paths=... -
Gem
:: Specification # require _ paths=(paths) (12323.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストをセットします。
...この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストをセットします。
@param paths この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリ...