1207件ヒット
[101-200件を表示]
(0.089秒)
ライブラリ
- ビルトイン (168)
- csv (12)
- digest (12)
-
irb
/ cmd / load (24) - logger (12)
- mkmf (12)
-
net
/ ftp (20) -
net
/ http (120) - openssl (24)
- pathname (443)
- rake (48)
-
rubygems
/ config _ file (24) -
rubygems
/ gem _ path _ searcher (24) -
rubygems
/ remote _ fetcher (24) -
rubygems
/ require _ paths _ builder (12) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ specification (12) -
rubygems
/ validator (12) - shell (42)
-
shell
/ command-processor (42) -
shell
/ filter (36) - tempfile (60)
- zlib (12)
クラス
-
ARGF
. class (24) - CSV (12)
-
Digest
:: Base (12) - File (24)
-
File
:: Stat (24) -
Gem
:: ConfigFile (24) -
Gem
:: GemPathSearcher (24) -
Gem
:: RemoteFetcher (24) -
Gem
:: SourceInfoCache (12) -
Gem
:: Specification (12) -
Gem
:: Validator (12) - IO (60)
-
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Source (12) - LoadError (12)
- Logger (12)
-
Net
:: FTP (20) -
Net
:: HTTP (72) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (24) -
OpenSSL
:: SSL :: SSLContext (24) - Pathname (443)
-
Rake
:: DefaultLoader (12) -
Rake
:: FileList (12) -
RubyVM
:: InstructionSequence (24) - Shell (42)
-
Shell
:: CommandProcessor (42) -
Shell
:: Filter (36) - String (12)
- Tempfile (60)
-
Zlib
:: GzipFile (12)
モジュール
- FileUtils (12)
-
Gem
:: RequirePathsBuilder (12) - Kernel (12)
キーワード
- <=> (12)
-
absolute
_ path (12) - ascend (24)
- atime (12)
- basename (12)
- birthtime (11)
-
body
_ stream (12) -
body
_ stream= (12) -
ca
_ file= (12) -
cert
_ store= (24) - chmod (12)
- chown (12)
- cleanpath (12)
- close (12)
- close! (12)
-
create
_ makefile (12) - ctime (12)
- delete (12)
- descend (24)
- dirname (12)
-
each
_ filename (12) - execute (24)
- extname (12)
-
extra
_ rdoc _ files= (12) - fdatasync (12)
- file? (12)
- filename (12)
- flush (12)
- fnmatch (12)
- fnmatch? (12)
- foreach (18)
- formatter (12)
- ftype (12)
- get (24)
-
get
_ file _ uri _ path (12) - lchmod (12)
- lchown (12)
- load (12)
- lstat (12)
-
make
_ link (12) -
make
_ symlink (12) -
matching
_ file? (12) -
matching
_ files (12) - mlsd (20)
- mtime (12)
- open (42)
-
open
_ uri _ or _ path (12) - path= (12)
- pathmap (24)
- post (24)
-
read
_ body (24) - readlink (30)
- realpath (24)
- rename (12)
- reopen (36)
-
set
_ params (12) - size? (12)
- split (30)
-
split
_ all (12) - stat (12)
-
to
_ path (24) -
to
_ s (12) - truncate (42)
-
try
_ file (12) - unlink (30)
- utime (12)
-
verify
_ gem _ file (12) -
write
_ require _ paths _ file _ if _ needed (12)
検索結果
先頭5件
-
Gem
:: RequirePathsBuilder # write _ require _ paths _ file _ if _ needed(spec = @spec , gem _ home = @gem _ home) (15202.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。
...必要であれば、'.require_paths' というファイルを Gem ごとに作成します。... -
File
# to _ path -> String (15163.0) -
オープン時に使用したパスを文字列で返します。
...、
File::Constants::TMPFILEオプション付きで作成されていたりする場合です。
//emlist[例][ruby]{
File.open("testfile") {|f| f.path } #=> "testfile"
File.open("/tmp/../tmp/xxx", "w") {|f| f.path } #=> "/tmp/../tmp/xxx"
File.open("/tmp", File::R......DWR | File::TMPFILE){|f| f.path } #=> "/tmp"
//}......Error TMPFILE File::Constants::TMPFILEオプション付きで作成されている場合に発生します。
//emlist[例][ruby]{
File.open("testfile") {|f| f.path } #=> "testfile"
File.open("/tmp/../tmp/xxx", "w") {|f| f.path } #=> "/tmp/../tmp/xxx"
File.open("/......tmp", File::RDWR | File::TMPFILE){|f| f.path } # IOError: File is unnamed (TMPFILE?)
//}... -
Gem
:: RemoteFetcher # get _ file _ uri _ path(uri) -> String (12219.0) -
与えられた URI から "file://" を取り除いた文字列を返します。
...与えられた URI から "file://" を取り除いた文字列を返します。
@param uri URI を表す文字列を指定します。... -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (9294.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 (9249.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>
//}... -
Gem
:: GemPathSearcher # matching _ files(spec , path) -> [String] (9240.0) -
与えられた spec に path が含まれている場合、その path のリストを返します。
...与えられた spec に path が含まれている場合、その path のリストを返します。
@param spec Gem::Specification のインスタンスを指定します。
@param path 探索対象のパスを指定します。... -
Pathname
# realpath -> Pathname (9231.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場......uire '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 (9231.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場......uire '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... -
Gem
:: GemPathSearcher # matching _ file?(spec , path) -> bool (9225.0) -
与えられた spec に path が含まれている場合、真を返します。 そうでない場合は偽を返します。
...与えられた spec に path が含まれている場合、真を返します。
そうでない場合は偽を返します。
@param spec Gem::Specification のインスタンスを指定します。
@param path 探索対象のパスを指定します。...