724件ヒット
[1-100件を表示]
(0.133秒)
ライブラリ
- ビルトイン (150)
-
cgi
/ core (12) - logger (12)
- mkmf (48)
-
net
/ ftp (10) -
net
/ http (24) - openssl (12)
- pathname (72)
- rake (72)
-
rexml
/ document (36) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ config _ file (12) -
rubygems
/ gem _ path _ searcher (24) -
rubygems
/ old _ format (12) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ specification (24) -
rubygems
/ validator (12) - shell (18)
-
shell
/ command-processor (18) -
shell
/ filter (12) - tempfile (12)
- uri (24)
- win32ole (12)
- zlib (12)
クラス
-
ARGF
. class (24) - Exception (12)
- File (24)
-
Gem
:: Commands :: LockCommand (12) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: ConfigFile (12) -
Gem
:: GemPathSearcher (24) -
Gem
:: OldFormat (12) -
Gem
:: RemoteFetcher (36) -
Gem
:: SourceInfoCache (12) -
Gem
:: Specification (24) -
Gem
:: Validator (12) - IO (6)
- LoadError (12)
- Logger (12)
-
Net
:: FTP :: MLSxEntry (10) -
Net
:: HTTP (12) -
Net
:: HTTPResponse (12) -
OpenSSL
:: SSL :: SSLContext (12) - Pathname (72)
- Proc (12)
-
REXML
:: Attribute (12) -
REXML
:: Element (24) -
Rake
:: Application (12) -
Rake
:: FileList (12) -
RubyVM
:: InstructionSequence (12) - Shell (18)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (12) - String (48)
- Tempfile (12)
-
Thread
:: Backtrace :: Location (48) -
URI
:: Generic (24) -
WEBrick
:: Cookie (12) -
WIN32OLE
_ TYPELIB (12) -
Zlib
:: GzipFile (12)
モジュール
-
CGI
:: QueryExtension (12) - Kernel (48)
キーワード
-
absolute
_ path (24) - binread (12)
- binwrite (12)
-
ca
_ path (24) -
dir
_ config (12) -
fetch
_ path (12) - filename (12)
-
find
_ executable (12) - formatter (12)
-
full
_ gem _ path (12) -
gem
_ path (12) -
get
_ file _ uri _ path (12) -
get
_ path (12) - inspect (12)
-
installation
_ path (12) -
lib
_ dirs _ for (12) - libpathflag (12)
-
link
_ command (12) -
matching
_ files (12) -
open
_ uri _ or _ path (12) -
original
_ dir (12) - path= (12)
-
path
_ translated (12) - pathmap (24)
-
pathmap
_ explode (12) -
pathmap
_ partial (12) -
pathmap
_ replace (12) - pathname (10)
- read (12)
-
read
_ body (12) - readlines (12)
- readlink (18)
-
remove
_ leading _ dot _ dir (12) - select (12)
-
set
_ backtrace (12) -
source
_ location (12) -
spec
_ path (12) - split (18)
- sub (12)
- text (12)
-
to
_ path (15) -
to
_ s (12) -
try
_ file (12) - write (12)
- xpath (24)
検索結果
先頭5件
-
Tempfile
# path -> String | nil (21315.0) -
テンポラリファイルのパス名を返します。
...テンポラリファイルのパス名を返します。
Tempfile#close! を実行後だった場合にはnilを返します。
require "tempfile"
tf = Tempfile.new("hoo")
p tf.path # => "/tmp/hoo.10596.0"
tf.close!
p tf.path # => nil... -
LoadError
# path -> String | nil (21309.0) -
Kernel.#require や Kernel.#load に失敗したパスを返します。
...Kernel.#require や Kernel.#load に失敗したパスを返します。
begin
require 'this/file/does/not/exist'
rescue LoadError => e
e.path # => 'this/file/does/not/exist'
end
パスが定まらない場合は nil を返します。... -
String
# pathmap _ partial(n) -> String (21302.0) -
自身から与えられた階層分パスを抜粋します。
自身から与えられた階層分パスを抜粋します。
与えられた数値が正である場合は左から、負である場合は右から抜粋します。 -
String
# pathmap _ replace(patterns) { . . . } -> String (21302.0) -
与えられたパスを前もって置き換えます。
与えられたパスを前もって置き換えます。
@param patterns 'pat1,rep1;pat2,rep2;...' のような形式で置換パターンを指定します。 -
File
# path -> String (21223.0) -
オープン時に使用したパスを文字列で返します。
...self に対応するファイルを指しているとは限りません。
たとえば、ファイルが移動されていたり、削除されていたり、
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 } #=> "/tmp"
//}......字列で返します。
パスは self に対応するファイルを指しているとは限りません。
たとえば、ファイルが移動されていたり、削除されていたりする場合です。
@raise IOError 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?)
//}... -
String
# pathmap _ explode -> Array (21223.0) -
自身をパスを表す部分ごとに分解して配列にして返します。 String#pathmap で利用される protected メソッドです。
...自身をパスを表す部分ごとに分解して配列にして返します。
String#pathmap で利用される protected メソッドです。
@see String#pathmap... -
Zlib
:: GzipFile # path -> String (21219.0) -
関連付けられている IO オブジェクトのパスを返します。 このメソッドは IO オブジェクトが path というメソッドを持つ場合のみ定義されます。
...関連付けられている IO オブジェクトのパスを返します。
このメソッドは IO オブジェクトが path というメソッドを持つ場合のみ定義されます。... -
Thread
:: Backtrace :: Location # path -> String (21215.0) -
self が表すフレームのファイル名を返します。
...self が表すフレームのファイル名を返します。
例: Thread::Backtrace::Location の例1を用いた例
//emlist[][ruby]{
loc = c(0..1).first
loc.path # => "caller_locations.rb"
//}
@see Thread::Backtrace::Location#absolute_path... -
WIN32OLE
_ TYPELIB # path -> String (21209.0) -
TypeLibのパス名を取得します。
...TypeLibのパス名を取得します。
@return TypeLibのパス名を文字列で返します。この値はレジストリの登録値を
そのまま利用するため、Rubyのパス名形式(ディレクトリ区切りは
「/」)ではなく、Windowsのパス名形式(......OLERuntimeError TypeLibの属性が読み取れない場合に通知します。
tlib = WIN32OLE_TYPELIB.new('Microsoft Excel 14.0 Object Library')
puts tlib.path # => 'C:\...\EXCEL.EXE'
TypeLibは拡張子TLB(まれにOLB)という独立したファイルの場合と、サーバの
DLL...