2603件ヒット
[1-100件を表示]
(0.048秒)
ライブラリ
- ビルトイン (1003)
-
cgi
/ session (11) - csv (99)
- digest (22)
- etc (11)
- fileutils (55)
-
irb
/ cmd / load (22) -
irb
/ input-method (11) -
irb
/ magic-file (22) - logger (11)
- mkmf (11)
-
net
/ ftp (18) -
net
/ http (110) -
net
/ pop (11) - open-uri (22)
- openssl (77)
- pathname (417)
- rake (44)
-
rubygems
/ config _ file (22) -
rubygems
/ format (11) -
rubygems
/ gem _ path _ searcher (22) -
rubygems
/ old _ format (11) -
rubygems
/ remote _ fetcher (22) -
rubygems
/ require _ paths _ builder (11) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ specification (11) -
rubygems
/ validator (11) - shell (42)
-
shell
/ command-processor (42) -
shell
/ filter (36) - tempfile (110)
-
webrick
/ httpservlet / filehandler (11) -
webrick
/ ssl (11) - zlib (11)
クラス
-
ARGF
. class (22) -
CGI
:: Session (11) - CSV (88)
-
Digest
:: Base (22) - Dir (160)
- File (473)
-
File
:: Stat (33) -
Gem
:: ConfigFile (22) -
Gem
:: Format (11) -
Gem
:: GemPathSearcher (22) -
Gem
:: OldFormat (11) -
Gem
:: RemoteFetcher (22) -
Gem
:: SourceInfoCache (11) -
Gem
:: Specification (11) -
Gem
:: Validator (11) - IO (129)
-
IRB
:: ExtendCommand :: Load (11) -
IRB
:: ExtendCommand :: Source (11) -
IRB
:: FileInputMethod (11) - LoadError (11)
- Logger (11)
-
Net
:: FTP (18) -
Net
:: HTTP (66) -
Net
:: HTTPGenericRequest (22) -
Net
:: HTTPResponse (22) -
Net
:: POP3 (11) -
OpenSSL
:: SSL :: SSLContext (33) - Pathname (417)
-
Rake
:: DefaultLoader (11) -
Rake
:: FileList (11) -
RubyVM
:: InstructionSequence (55) - Shell (42)
-
Shell
:: CommandProcessor (42) -
Shell
:: Filter (36) - String (11)
- Tempfile (110)
-
WEBrick
:: HTTPServlet :: DefaultFileHandler (11) -
Zlib
:: GzipFile (11)
モジュール
- Etc (11)
-
File
:: Constants (11) - FileTest (22)
- FileUtils (66)
-
Gem
:: RequirePathsBuilder (11) - Kernel (90)
-
OpenSSL
:: X509 (44) - OpenURI (22)
-
RubyVM
:: AbstractSyntaxTree (8) -
WEBrick
:: Config (11)
オブジェクト
-
IRB
:: MagicFile (22)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - <=> (11)
- CSV (11)
-
DEFAULT
_ CERT _ STORE (11) - DOSISH 対応 (11)
-
FNM
_ PATHNAME (11) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (3) -
PATH
_ SEPARATOR (11) -
PC
_ FILESIZEBITS (11) - Ruby用語集 (11)
- SSL (11)
-
V
_ ERR _ DEPTH _ ZERO _ SELF _ SIGNED _ CERT (11) -
V
_ ERR _ SELF _ SIGNED _ CERT _ IN _ CHAIN (11) -
V
_ ERR _ UNABLE _ TO _ GET _ ISSUER _ CERT (11) -
V
_ ERR _ UNABLE _ TO _ GET _ ISSUER _ CERT _ LOCALLY (11) -
absolute
_ path (22) -
absolute
_ path? (5) - ascend (22)
- atime (11)
- basename (11)
- birthtime (10)
- blockdev? (11)
-
body
_ stream (11) -
body
_ stream= (11) -
ca
_ file= (11) -
cert
_ store= (22) - certs (11)
- chardev? (11)
- chmod (11)
- chown (11)
- chroot (11)
- cleanpath (11)
- close (11)
- close! (11)
- compile (11)
-
compile
_ file (11) - create (22)
-
create
_ makefile (11) - ctime (11)
- delete (11)
- descend (22)
- directory? (11)
- dirname (11)
-
drb
/ ssl (11) -
each
_ child (28) -
each
_ filename (11) - empty? (8)
- entries (11)
- executable? (11)
-
executable
_ real? (11) - execute (22)
- exist? (11)
- exists? (9)
- extname (11)
-
extra
_ rdoc _ files= (11) - fdatasync (11)
- file? (22)
- filename (11)
- find (11)
- flush (11)
- fnmatch (22)
- fnmatch? (22)
-
for
_ fd (2) - foreach (73)
- formatter (11)
-
from
_ file _ by _ path (22) - ftype (11)
- get (22)
-
get
_ file _ uri _ path (11) - grpowned? (11)
- home (22)
- irb (11)
- join (11)
- lchmod (11)
- lchown (11)
- load (11)
- logger (11)
- lstat (11)
-
make
_ link (11) -
make
_ symlink (11) -
matching
_ file? (11) -
matching
_ files (11) - mkdir (11)
- mkpath (11)
- mlsd (18)
- mtime (11)
- new (101)
- open (176)
-
open
_ uri (22) -
open
_ uri _ or _ path (11) - owned? (11)
-
parse
_ file (8) - path= (11)
- pathmap (22)
- pipe? (11)
- post (22)
- rdoc (11)
- read (44)
-
read
_ body (22) - readable? (11)
-
readable
_ real? (11) - readlines (44)
- readlink (40)
- realdirpath (11)
- realpath (33)
-
remove
_ dir (11) -
remove
_ entry (11) -
remove
_ entry _ secure (11) -
remove
_ file (11) - rename (11)
- reopen (33)
-
require
_ relative (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 8 . 5 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ commands / generate _ index _ command (11) -
rubygems
/ commands / mirror _ command (11) -
set
_ params (11) - setgid? (11)
- setuid? (11)
- size (11)
- size? (22)
- socket? (11)
- spawn (44)
- split (40)
-
split
_ all (11) - stat (11)
- sticky? (11)
- symlink? (11)
- system (24)
-
test
/ unit (1) -
to
_ path (22) -
to
_ s (11) - truncate (51)
-
try
_ file (11) - unlink (29)
- utime (11)
-
verify
_ gem _ file (11) -
world
_ readable? (22) -
world
_ writable? (22) - writable? (11)
-
writable
_ real? (11) -
write
_ require _ paths _ file _ if _ needed (11) - zero? (11)
- セキュリティモデル (11)
- 変数と定数 (11)
検索結果
先頭5件
-
File
. path(filename) -> String (27301.0) -
指定されたファイル名を文字列で返します。filename が文字列でない場合は、to_path メソッドを呼びます。
...filename が文字列でない場合は、to_path メソッドを呼びます。
@param filename ファイル名を表す文字列か to_path メソッドが定義されたオブジェクトを指定します。
//emlist[例][ruby]{
require 'pathname'
class MyPath
def initialize(path)
@path......= path
end
def to_path
File.absolute_path(@path)
end
end
File.path("/dev/null") # => "/dev/null"
File.path(Pathname("/tmp")) # => "/tmp"
File.path(MyPath.new(".")) # => "/Users/user/projects/txt"
//}... -
File
# path -> String (27162.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 (21117.0) -
関連付けられている IO オブジェクトのパスを返します。 このメソッドは IO オブジェクトが path というメソッドを持つ場合のみ定義されます。
...関連付けられている IO オブジェクトのパスを返します。
このメソッドは IO オブジェクトが path というメソッドを持つ場合のみ定義されます。... -
Tempfile
# path -> String | nil (21113.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 (21101.0) -
Gem を探索するパスを返します。
Gem を探索するパスを返します。 -
Digest
:: Base # file(path) -> self (18254.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値... -
Digest
:: Base . file(path) -> object (18230.0) -
新しいダイジェストオブジェクトを生成し、 ファイル名 file で指定したファイルの内容を読み込み、 そのダイジェストオブジェクトを返します。
...新しいダイジェストオブジェクトを生成し、
ファイル名 file で指定したファイルの内容を読み込み、
そのダイジェストオブジェクトを返します。
@param path 読み込み対象のファイル名です。
@return ダイジェストオブジェク......トを返します。
使用例(SHA256の場合)
require 'digest'
digest = Digest::SHA256.file("X11R6.8.2-src.tar.bz2")
digest.hexdigest
# => "f02e3c85572dc9ad7cb77c2a638e3be24cc1b5bea9fdbb0b0299c9668475c534"... -
RubyVM
:: InstructionSequence # path -> String (18131.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 (18119.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 (18101.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"...