1783件ヒット
[1-100件を表示]
(0.057秒)
別のキーワード
ライブラリ
- ビルトイン (60)
- digest (12)
- etc (12)
- mkmf (84)
-
net
/ ftp (30) -
net
/ http (444) - openssl (24)
- pathname (397)
- rake (36)
-
rexml
/ document (108) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ commands / which _ command (24) -
rubygems
/ custom _ require (12) -
rubygems
/ format (12) -
rubygems
/ gem _ path _ searcher (24) -
rubygems
/ indexer (12) -
rubygems
/ old _ format (12) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ specification (60) -
rubygems
/ uninstaller (12) -
rubygems
/ validator (12) - shell (90)
-
shell
/ command-processor (54) -
shell
/ filter (48) - socket (12)
- uri (12)
-
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htgroup (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httprequest (12) -
webrick
/ httpserver (12)
クラス
- Addrinfo (12)
-
CGI
:: Cookie (12) -
Digest
:: Base (12) -
File
:: Stat (12) -
Gem
:: Commands :: LockCommand (12) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: Commands :: WhichCommand (24) -
Gem
:: Format (12) -
Gem
:: GemPathSearcher (24) -
Gem
:: Indexer (12) -
Gem
:: OldFormat (12) -
Gem
:: RemoteFetcher (36) -
Gem
:: SourceInfoCache (12) -
Gem
:: Specification (60) -
Gem
:: Uninstaller (12) -
Gem
:: Validator (12) - IO (36)
-
Net
:: FTP (30) -
Net
:: HTTP (444) -
OpenSSL
:: SSL :: SSLContext (12) -
OpenSSL
:: X509 :: Store (12) - Pathname (385)
-
RDoc
:: Options (12) -
REXML
:: Element (48) -
REXML
:: Elements (60) - Shell (90)
-
Shell
:: CommandProcessor (54) -
Shell
:: Filter (48) - String (12)
- Thread (24)
-
URI
:: Generic (12) -
WEBrick
:: Cookie (24) -
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htgroup (12) -
WEBrick
:: HTTPAuth :: Htpasswd (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPServer :: MountTable (12)
モジュール
- FileUtils (12)
- Kernel (108)
-
Rake
:: TaskManager (12)
キーワード
- + (12)
-
/ (11) - <=> (24)
- == (12)
- === (12)
- Pathname (12)
-
add
_ path (12) -
backtrace
_ locations (24) - basename (12)
-
ca
_ file= (12) -
ca
_ path= (24) - cd (6)
- chdir (6)
- children (12)
- chmod (12)
- chown (12)
- cleanpath (12)
- collect (12)
- copy (12)
-
create
_ makefile (12) -
create
_ rule (12) - delete (12)
-
delete
_ all (12) - each (12)
-
each
_ child (24) -
each
_ element (12) - eql? (12)
- extensions= (12)
-
extra
_ rdoc _ files= (12) -
family
_ addrinfo (12) -
fetch
_ path (12) - file (12)
- find (22)
-
find
_ executable (12) -
find
_ header (12) -
find
_ library (24) -
find
_ paths (12) - flush (36)
- fnmatch (12)
- fnmatch? (12)
- foreach (18)
-
gem
_ path= (24) -
gem
_ paths (12) - get (24)
- get2 (24)
-
get
_ elements (12) -
get
_ file _ uri _ path (12) -
get
_ path (12) -
get
_ text (12) - glob (16)
- head (12)
- head2 (24)
- inject (12)
- join (12)
- lchmod (12)
- lchown (12)
- libpathflag (12)
-
link
_ command (12) -
loaded
_ from= (12) - lock (12)
-
matching
_ file? (12) -
matching
_ files (12) - mkcol (12)
- mkdir (18)
- mlsd (20)
- mlst (10)
- move (12)
- open (18)
-
open
_ uri _ or _ path (12) - paranoid (12)
- patch (24)
- path= (36)
-
path
_ info= (12) -
path
_ ok? (12) - pathconf (12)
-
pathmap
_ replace (12) - post (24)
- post2 (24)
- propfind (12)
- proppatch (12)
- pushd (6)
- pushdir (6)
- put (12)
- put2 (24)
- readlink (18)
- realdirpath (12)
- realpath (24)
-
relative
_ path _ from (12) - rename (12)
- reopen (24)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) - require (12)
-
require
_ path= (12) -
require
_ paths= (12) - rmdir (18)
- scan (12)
-
send
_ request (12) -
spec
_ path (12) - split (18)
-
split
_ all (12) -
static
_ path= (12) - sub (24)
-
sub
_ ext (12) -
system
_ path (6) -
system
_ path= (6) - text (12)
-
to
_ a (12) - trace (12)
- truncate (30)
-
try
_ file (12) - unlink (18)
- unlock (12)
- utime (12)
-
verify
_ gem _ file (12)
検索結果
先頭5件
-
Pathname
# relative _ path _ from(base _ directory) -> Pathname (24526.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......も相対パス、self が絶対パスなら
base_directory も絶対パスでなければなりません。
@param 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>
//}... -
WEBrick
:: Cookie # path -> String (24209.0) -
パス名を文字列で表すアクセサです。
...パス名を文字列で表すアクセサです。
@param value パス名を文字列で指定します。... -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (18478.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 (18443.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") res......cue 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 (18437.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
# realpath -> Pathname (18419.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
... Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@param b......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 (18419.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
... Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@param b......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... -
RDoc
:: Options # static _ path=(vals) (18308.0) -
コマンドライン引数の --copy-files オプションと同様の指定を行います。
...コマンドライン引数の --copy-files オプションと同様の指定を行います。
@param vals パスを文字列の配列で指定します。... -
Gem
:: Format # gem _ path=(path) (15415.0) -
Gem のパスをセットします。
...Gem のパスをセットします。
@param path Gem のパスをセットします。...