402件ヒット
[101-200件を表示]
(0.140秒)
ライブラリ
-
irb
/ context (12) - mkmf (12)
-
net
/ http (12) - openssl (12)
- pathname (120)
-
rexml
/ document (24) - rss (24)
-
rubygems
/ config _ file (12) -
rubygems
/ format (12) -
rubygems
/ old _ format (12) -
rubygems
/ specification (12) - shell (30)
-
shell
/ command-processor (6) -
shell
/ filter (6) - tempfile (12)
- uri (12)
-
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htgroup (12) -
webrick
/ httpauth / htpasswd (12)
クラス
-
CGI
:: Cookie (12) -
Gem
:: ConfigFile (12) -
Gem
:: Format (12) -
Gem
:: OldFormat (12) -
Gem
:: Specification (12) -
IRB
:: Context (12) -
Net
:: HTTP (12) -
OpenSSL
:: SSL :: SSLContext (12) - Pathname (120)
-
RDoc
:: Options (12) -
REXML
:: Element (24) -
RSS
:: Rss :: Channel :: Cloud (24) - Shell (30)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Tempfile (12)
-
URI
:: Generic (12) -
WEBrick
:: Cookie (12) -
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htgroup (12) -
WEBrick
:: HTTPAuth :: Htpasswd (12)
モジュール
- Kernel (12)
キーワード
-
ca
_ path= (24) - cleanpath (12)
- close! (12)
-
find
_ executable (12) - flush (36)
- fnmatch (12)
- foreach (18)
-
gem
_ path= (24) -
get
_ text (12) -
irb
_ path= (12) - mountpoint? (12)
- parent (12)
- path (12)
- pushd (6)
- pushdir (6)
- realdirpath (12)
- realpath (24)
-
relative
_ path _ from (12) -
require
_ path= (12) -
static
_ path= (12) -
system
_ path (6) -
system
_ path= (6) - text (12)
-
to
_ s (12)
検索結果
先頭5件
-
Gem
:: Specification # require _ path=(path) (12301.0) -
Gem::Specification#require_paths= の単数バージョンです。
...Gem::Specification#require_paths= の単数バージョンです。
@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。
@see Gem::Specification#require_paths=... -
Net
:: HTTP # ca _ path=(path) (12301.0) -
信頼する CA 証明書ファイルが存在するディレクトリを設定します。
...イル名はハッシュ値の文字列にしなければなりません。
詳しくは OpenSSL::SSL::SSLContext#ca_path= を見てください。
デフォルトは nil (指定なし)です。
@param path ディレクトリ名文字列
@see Net::HTTP#ca_path, OpenSSL::SSL::SSLContext#ca_path=... -
IRB
:: Context # irb _ path=(val) (12201.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
OpenSSL
:: SSL :: SSLContext # ca _ path=(ca) (12201.0) -
接続相手の証明書の検証のために使う、 信頼している CA 証明書ファイルを含むディレクトリを設定します。
...むディレクトリを設定します。
そのディレクトリに含まれる
証明書のファイル名は証明書のハッシュ値文字列でなければなりません。
@param ca CA 証明書ファイルを含むディレクトリ名文字列
@see OpenSSL::SSL::SSLContext#ca_path... -
Pathname
# cleanpath(consider _ symlink = false) -> Pathname (9213.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 (9213.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
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (9207.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
# realpath -> Pathname (9207.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生しま......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 (9207.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生しま......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...