1207件ヒット
[1-100件を表示]
(0.091秒)
ライブラリ
- ビルトイン (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件
-
File
# path -> String (27163.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?)
//}... -
Zlib
:: GzipFile # path -> String (21118.0) -
関連付けられている IO オブジェクトのパスを返します。 このメソッドは IO オブジェクトが path というメソッドを持つ場合のみ定義されます。
...関連付けられている IO オブジェクトのパスを返します。
このメソッドは IO オブジェクトが path というメソッドを持つ場合のみ定義されます。... -
Tempfile
# path -> String | nil (21114.0) -
テンポラリファイルのパス名を返します。
...テンポラリファイルのパス名を返します。
Tempfile#close! を実行後だった場合にはnilを返します。
require "tempfile"
tf = Tempfile.new("hoo")
p tf.path # => "/tmp/hoo.10596.0"
tf.close!
p tf.path # => nil... -
Gem
:: ConfigFile # path -> String (21102.0) -
Gem を探索するパスを返します。
Gem を探索するパスを返します。 -
Digest
:: Base # file(path) -> self (18255.0) -
ファイル名 file で指定したファイルの内容を読み込んでダイジェストを更新し、 オブジェクト自身を返します。
...ファイル名 file で指定したファイルの内容を読み込んでダイジェストを更新し、
オブジェクト自身を返します。
@param path 読み込み対象のファイル名です。
@return ダイジェストオブジェクトを返します。
例(MD5の場合)
req......uire 'digest/md5'
digest = Digest::MD5.new
digest.file("/path/to/file") # => Digest::MD5のインスタンス
digest.hexdigest # => "/path/to/file"のMD5値... -
RubyVM
:: InstructionSequence # path -> String (18132.0) -
self が表す命令シーケンスの相対パスを返します。
...ompiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see Ruby......VM::InstructionSequence#absolute_path... -
LoadError
# path -> String | nil (18120.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 を返します。... -
ARGF
. class # path -> String (18102.0) -
現在開いている処理対象のファイル名を返します。
...は - を返します。
組み込み変数 $FILENAME と同じです。
$ echo "foo" > foo
$ echo "bar" > bar
$ echo "glark" > glark
$ ruby argf.rb foo bar glark
ARGF.filename # => "foo"
ARGF.read(5) # => "foo\nb"
ARGF.filename # => "bar"
ARGF.skip
ARGF.filename # => "glark"... -
Gem
:: RequirePathsBuilder # write _ require _ paths _ file _ if _ needed(spec = @spec , gem _ home = @gem _ home) (15202.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。
...必要であれば、'.require_paths' というファイルを Gem ごとに作成します。...