2389件ヒット
[1-100件を表示]
(0.029秒)
ライブラリ
- ビルトイン (214)
- csv (108)
- digest (24)
- etc (24)
- fileutils (24)
-
json
/ add / exception (12) - logger (12)
- mkmf (24)
-
net
/ ftp (20) -
net
/ http (96) - open-uri (24)
- optparse (24)
- pathname (651)
- rake (36)
-
rake
/ packagetask (12) -
rexml
/ document (108) - rubygems (12)
-
rubygems
/ commands / which _ command (12) -
rubygems
/ custom _ require (12) -
rubygems
/ require _ paths _ builder (24) -
rubygems
/ specification (60) - shell (78)
-
shell
/ command-processor (12) -
shell
/ filter (12) - socket (228)
- tempfile (120)
- uri (144)
-
win32
/ resolv (12)
クラス
- Addrinfo (48)
- CSV (96)
-
Digest
:: Base (24) - Dir (81)
- Exception (12)
- File (12)
-
File
:: Stat (24) -
Gem
:: Commands :: WhichCommand (12) -
Gem
:: Specification (60) - IO (36)
- LoadError (12)
- Logger (12)
-
Net
:: FTP (20) -
Net
:: HTTP (36) -
Net
:: HTTPGenericRequest (36) -
Net
:: HTTPResponse (24) - OptionParser (24)
- Pathname (639)
-
REXML
:: Element (36) -
REXML
:: Elements (36) -
REXML
:: XPath (36) -
Rake
:: DefaultLoader (12) -
Rake
:: PackageTask (12) - RubyVM (1)
-
RubyVM
:: InstructionSequence (12) - Shell (78)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Socket (72)
- Tempfile (120)
- UNIXServer (48)
- UNIXSocket (60)
-
URI
:: FTP (36) -
URI
:: Generic (36) -
URI
:: HTTP (36) -
WEBrick
:: Cookie (24) -
Win32
:: Resolv (12)
モジュール
キーワード
-
$ -I (12) -
$ : (12) -
$ LOAD _ PATH (12) - + (12)
-
/ (11) - <=> (24)
- == (12)
- === (12)
- CSV (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) - Pathname (12)
- RequirePathsBuilder (12)
- Rubyの起動 (12)
- Ruby用語集 (12)
- absolute? (12)
- application (12)
- application= (12)
- ascend (24)
- atime (12)
-
attribute
_ alias _ singular (12) - basename (12)
- binread (12)
-
body
_ stream (12) -
body
_ stream= (12) - build (48)
- cd (12)
- cgi (12)
- chdir (6)
- children (12)
- chown (12)
- cleanpath (12)
- close (12)
- close! (12)
- component (12)
- confstr (12)
- create (24)
-
create
_ makefile (12) - ctime (12)
-
def
_ system _ command (6) -
default
_ system _ path (6) -
default
_ system _ path= (6) - delete (24)
-
delete
_ all (12) - descend (24)
-
dir
_ config (12) - dirname (12)
-
drb
/ ssl (12) - each (24)
-
each
_ child (24) -
each
_ entry (15) -
each
_ filename (12) -
each
_ line (24) - empty? (18)
- entries (12)
- eql? (12)
-
family
_ addrinfo (24) - fdatasync (12)
- file (24)
- find (36)
- first (12)
- flush (12)
- fnmatch (12)
- foreach (42)
- formatter (12)
- gem (12)
-
gem
_ paths (12) -
get
_ hosts _ path (12) -
get
_ print (24) -
get
_ text (12) - getwd (12)
- glob (40)
- head (12)
-
install
_ system _ commands (6) - irb (12)
- join (24)
- load (12)
- logger (12)
- match (12)
- mkdir (18)
- mkpath (12)
- mlsd (20)
- mountpoint? (12)
-
net
/ http (12) - new (108)
- open (168)
-
open
_ uri (24) -
pack
_ sockaddr _ un (12) -
package
_ dir _ path (12) - parent (12)
- parse (24)
- pathconf (12)
-
program
_ name (12) -
program
_ name= (12) - pushd (6)
- pushdir (6)
- pwd (12)
-
rake
/ gempackagetask (12) - rdoc (12)
- read (12)
-
read
_ body (24) - readlines (12)
- realdirpath (12)
- realpath (24)
- relative? (12)
-
relative
_ path _ from (12) -
remove
_ entry (12) -
request
_ uri (12) -
require
_ path (12) -
require
_ path= (12) -
require
_ paths (12) -
require
_ paths= (12) -
require
_ relative (12) -
resolve
_ feature _ path (1) - root? (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) - rubygems (12)
-
rubygems
/ require _ paths _ builder (12) - select (12)
- size? (12)
-
sockaddr
_ un (12) - split (24)
- sub (24)
-
sub
_ ext (12) -
system
_ path (6) -
system
_ path= (6) -
test
/ unit (1) - text (12)
-
to
_ a (24) -
to
_ json (12) -
to
_ s (12) - unix (36)
-
unix
_ path (12) -
unix
_ server _ socket (24) - unlink (24)
-
webrick
/ cgi (12) -
write
_ require _ paths _ file _ if _ needed (12) - xpath (12)
- セキュリティモデル (12)
検索結果
先頭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=...