911件ヒット
[1-100件を表示]
(0.129秒)
ライブラリ
- ビルトイン (24)
- digest (12)
- etc (12)
-
json
/ add / exception (12) - mkmf (24)
-
net
/ ftp (20) -
net
/ http (60) - optparse (24)
- pathname (423)
- rake (12)
-
rexml
/ document (60) - rubygems (12)
-
rubygems
/ commands / which _ command (12) -
rubygems
/ custom _ require (12) -
rubygems
/ require _ paths _ builder (12) -
rubygems
/ specification (36) - shell (48)
-
shell
/ command-processor (12) -
shell
/ filter (12) - socket (36)
- tempfile (12)
- uri (24)
クラス
- Addrinfo (36)
-
Digest
:: Base (12) - Exception (12)
-
File
:: Stat (12) -
Gem
:: Commands :: WhichCommand (12) -
Gem
:: Specification (36) - IO (24)
-
Net
:: FTP (20) -
Net
:: HTTP (12) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (24) - OptionParser (24)
- Pathname (423)
-
REXML
:: Element (24) -
REXML
:: Elements (36) -
Rake
:: DefaultLoader (12) - Shell (48)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Tempfile (12)
-
URI
:: Generic (24)
モジュール
-
Gem
:: RequirePathsBuilder (12) - Kernel (48)
キーワード
- + (12)
-
/ (11) - <=> (24)
- == (12)
- === (12)
- atime (12)
- basename (12)
- binread (12)
-
body
_ stream (12) -
body
_ stream= (12) - cd (6)
- chdir (6)
- children (12)
- chown (12)
- cleanpath (12)
- close (12)
-
create
_ makefile (12) - ctime (12)
-
delete
_ all (12) -
dir
_ config (12) - dirname (12)
- each (12)
-
each
_ child (24) -
each
_ entry (15) -
each
_ line (24) - empty? (9)
- entries (12)
- eql? (12)
-
family
_ addrinfo (24) - fdatasync (12)
- file (12)
- find (24)
- fnmatch (12)
- foreach (18)
- gem (12)
-
gem
_ paths (12) -
get
_ text (12) - glob (16)
- head (12)
- join (12)
- load (12)
- mkdir (18)
- mlsd (20)
- pathconf (12)
-
program
_ name (12) -
program
_ name= (12) - pushd (6)
- pushdir (6)
-
read
_ body (24) - realdirpath (12)
- realpath (24)
-
relative
_ path _ from (12) -
require
_ path (12) -
require
_ path= (12) -
require
_ paths= (12) - select (12)
- split (12)
- sub (24)
-
sub
_ ext (12) -
system
_ path (6) -
system
_ path= (6) - text (12)
-
to
_ a (12) -
to
_ json (12) -
unix
_ path (12) -
write
_ require _ paths _ file _ if _ needed (12)
検索結果
先頭5件
-
Gem
:: RequirePathsBuilder # write _ require _ paths _ file _ if _ needed(spec = @spec , gem _ home = @gem _ home) (27420.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。
...必要であれば、'.require_paths' というファイルを Gem ごとに作成します。... -
URI
:: Generic # path -> String | nil (24260.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'... -
Gem
:: Specification # require _ path=(path) (18550.0) -
Gem::Specification#require_paths= の単数バージョンです。
...Gem::Specification#require_paths= の単数バージョンです。
@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。
@see Gem::Specification#require_paths=... -
Gem
:: Specification # require _ paths=(paths) (18530.0) -
この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストをセットします。
...この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストをセットします。
@param paths この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリ... -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (18490.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 (18455.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") re......scue 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 (18449.0) -
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に 存在しなくてもエラーになりません。
...
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に
存在しなくてもエラーになりません。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require "pathna......e"
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
# realpath -> Pathname (18431.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...い Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@para......emlist[例][ruby]{
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... -
Pathname
# realpath(basedir = nil) -> Pathname (18431.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...い Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@para......emlist[例][ruby]{
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...