ライブラリ
- ビルトイン (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件
-
Gem
:: Specification # require _ paths=(paths) (12323.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストをセットします。
...この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストをセットします。
@param paths この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリ... -
Gem
:: Specification # require _ path -> String (12224.0) -
Gem::Specification#require_paths の単数バージョンです。
...Gem::Specification#require_paths の単数バージョンです。
@see Gem::Specification#require_paths... -
Gem
:: Specification # require _ paths -> [String] (12217.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストを返します。
...この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストを返します。... -
Gem
:: RequirePathsBuilder (12016.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成するための モジュールです。
...必要であれば、'.require_paths' というファイルを Gem ごとに作成するための
モジュールです。... -
rubygems
/ require _ paths _ builder (12016.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成するための モジュールを提供するためのライブラリです。
...必要であれば、'.require_paths' というファイルを Gem ごとに作成するための
モジュールを提供するためのライブラリです。... -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (9277.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... -
Pathname
# cleanpath(consider _ symlink = false) -> Pathname (9248.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
cleanpath は、実際にファイルシステムを参照することなく、文字列操作
だけで処理を行います。
@param consider_symlink 真ならパス要素にシンボリック......も問題ないように .. を残します。
//emlist[例][ruby]{
require "pathname"
path = Pathname.new("//.././../")
path # => #<Pathname://.././../>
path.cleanpath # => #<Pathname:/>
require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo")......rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")
path.cleanpath # => #<Pathname:bar/bar>
path.cleanpath(true) # => #<Pathname:bar/foo/../bar>
//}... -
Pathname
# realdirpath(basedir = nil) -> Pathname (9236.0) -
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に 存在しなくてもエラーになりません。
...
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に
存在しなくてもエラーになりません。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require "pathna......me"
path = Pathname("/not_exist")
path.realdirpath # => #<Pathname:/not_exist>
path.realpath # => Errno::ENOENT
# 最後ではないコンポーネント(/not_exist_1)も存在しないのでエラーになる。
path = Pathname("/not_exist_1/not_exist_2")
path.realdirpath # => Errno::ENOENT......//}
@see Pathname#realpath... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (9225.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......トリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相対パスが求められないときに例外が発生します。
//emlist[例][ruby]{
require 'pathname'
path = Pathname.new("/tmp....../foo")
base = Pathname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}... -
Pathname
# realpath -> Pathname (9218.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場......{
require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")
p path.realpath......# => ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath...