ライブラリ
- English (33)
- ビルトイン (606)
- csv (99)
- erb (33)
- fileutils (11)
-
irb
/ input-method (44) -
net
/ http (11) - open-uri (30)
- openssl (88)
- pathname (11)
- pstore (11)
- readline (55)
-
rubygems
/ package / tar _ reader / entry (11) -
rubygems
/ source _ info _ cache (11) - shell (18)
-
shell
/ command-processor (18) -
shell
/ filter (18) - tempfile (33)
- thread (2)
- timeout (19)
-
yaml
/ store (8) - zlib (165)
クラス
-
ARGF
. class (55) - CSV (99)
- Dir (44)
- ERB (33)
- File (99)
-
File
:: Stat (44) -
Gem
:: Package :: TarReader :: Entry (11) -
Gem
:: SourceInfoCache (11) - IO (243)
-
IRB
:: InputMethod (11) -
IRB
:: ReadlineInputMethod (22) -
IRB
:: StdioInputMethod (11) - Method (12)
-
Net
:: HTTPResponse (11) -
OpenSSL
:: PKCS7 (11) - PStore (11)
- Pathname (11)
- Proc (12)
- Shell (18)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (18) - Tempfile (33)
-
YAML
:: Store (8) -
Zlib
:: GzipReader (77) -
Zlib
:: GzipWriter (77)
モジュール
- FileTest (33)
- FileUtils (11)
- Kernel (96)
-
OpenSSL
:: ASN1 (11) -
OpenSSL
:: Random (11) - OpenURI (22)
- Readline (55)
- Timeout (19)
キーワード
-
$ DEFAULT _ OUTPUT (11) -
$ INPUT _ LINE _ NUMBER (11) -
$ NR (11) - << (34)
- >> (12)
- ConditionVariable (11)
- Digest (11)
- ExtensionFactory (11)
-
FILENAME
_ COMPLETION _ PROC (11) - GzipReader (11)
- RSA (11)
- Request (11)
- SSLServer (11)
-
add
_ row (11) - birthtime (11)
- clone (11)
- close (11)
- closed? (11)
-
copy
_ stream (11) - decode (11)
-
def
_ class (11) - dup (11)
- eof? (11)
- file? (11)
- filename (22)
- filename= (11)
-
filename
_ quote _ characters (11) -
filename
_ quote _ characters= (11) - flock (11)
- flush (22)
- getc (11)
- input= (11)
- link (11)
-
load
_ random _ file (11) - new (63)
- open (140)
-
open
_ uri (22) - output= (11)
- path (11)
- pread (7)
- print (11)
- printf (11)
- putc (11)
- puts (22)
-
rb
_ read _ check (1) -
read
_ body (11) -
read
_ cache _ data (11) - readable? (51)
-
readable
_ atfer _ eof? (33) -
readable
_ real? (51) - readbyte (11)
- readchar (22)
- readline (55)
- readlines (77)
- readlink (40)
-
ruby 1
. 8 . 2 feature (11) -
set
_ encoding _ by _ bom (5) - spawn (44)
- sysread (11)
- timeout (19)
- ungetc (11)
-
world
_ readable? (33) - wrap (22)
- write (11)
-
write
_ smime (11)
検索結果
先頭5件
-
ARGF
. class # file -> IO (24247.0) -
現在開いている処理対象の File オブジェクト(または IO オブジェ クト)を返します。
...開いている処理対象の File オブジェクト(または IO オブジェ
クト)を返します。
$ echo "foo" > foo
$ echo "bar" > bar
$ ruby argf.rb foo bar
ARGF.file # => #<File:foo>
ARGF.read(5) # => "foo\nb"
ARGF.file # => #<File:bar>
ARGFが現在開いて... -
File
. world _ readable?(path) -> Integer | nil (24206.0) -
path が全てのユーザから読めるならばそのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
...返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列か IO オブジェクトを指定します。
//emlist[例][ruby]{
m = File.world_readable?("/etc/passwd")
"%o" % m... -
File
. readable?(path) -> bool (24200.0) -
FileTest.#readable? と同じです。
...
FileTest.#readable? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
File
. readable _ real?(path) -> bool (24200.0) -
FileTest.#readable_real? と同じです。
...
FileTest.#readable_real? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
File
. readlink(path) -> String (21212.0) -
シンボリックリンクのリンク先のパスを文字列で返します。
...XX 指定された path がシンボリックリンクでない場合や、リンクの読み取りに失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.symlink("testfile", "testlink") # => 0
File.readlink("testlink") # => "testfile"
//}... -
FileTest
. # readable?(file) -> bool (18419.0) -
ファイルがカレントプロセスにより読み込み可能な時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...は false を返します。
@param file ファイル名を表す文字列を指定します。
//emlist[例][ruby]{
IO.write("testfile", "")
File.chmod(0644, "testfile")
FileTest.readable?("testfile") # => true
File.chmod(0200, "testfile")
FileTest.readable?("testfile") # => false
//}... -
FileTest
. # readable _ real?(file) -> bool (18407.0) -
ファイルがカレントプロセスの実ユーザか実グループによって読み込み可能な時に真を 返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...読み込み可能な時に真を
返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable?... -
Readline
:: FILENAME _ COMPLETION _ PROC -> Proc (18300.0) -
GNU Readline で定義されている関数を使用してファイル名の補完を行うための Proc オブジェクトです。 Readline.completion_proc= で使用します。
...GNU Readline で定義されている関数を使用してファイル名の補完を行うための
Proc オブジェクトです。
Readline.completion_proc= で使用します。
@see Readline.completion_proc=... -
IO
. read(path , **opt) -> String | nil (18269.0) -
path で指定されたファイルを offset 位置から length バイト分読み込んで返します。
...から
length バイト分読み込んで返します。
既に EOF に達している場合は nil を返します。ただし、length に nil か 0 が指定されている場合は、空文字列 "" を返します。例えば、IO.read(空ファイル) は "" を返します。
引数 length......ます。
Kernel.#open と同様 path の先頭が "|" ならば、"|" に続くコマンドの出力を読み取ります。
@param path ファイル名を表す文字列か "|コマンド名" を指定します。
@param length 読み込む長さを整数で指定します。nil であるか省......xternal_encoding など
IO.open のオプション引数が指定できます。
@see IO.binread
例:
IO.read(empty_file) #=> ""
IO.read(empty_file, 1) #=> nil
IO.read(one_byte_file, 0, 10) #=> ""
IO.read(one_byte_file, nil, 10) #=> ""
IO.read(one_byte_file, 1, 1... -
IO
. read(path , length = nil , **opt) -> String | nil (18269.0) -
path で指定されたファイルを offset 位置から length バイト分読み込んで返します。
...から
length バイト分読み込んで返します。
既に EOF に達している場合は nil を返します。ただし、length に nil か 0 が指定されている場合は、空文字列 "" を返します。例えば、IO.read(空ファイル) は "" を返します。
引数 length......ます。
Kernel.#open と同様 path の先頭が "|" ならば、"|" に続くコマンドの出力を読み取ります。
@param path ファイル名を表す文字列か "|コマンド名" を指定します。
@param length 読み込む長さを整数で指定します。nil であるか省......xternal_encoding など
IO.open のオプション引数が指定できます。
@see IO.binread
例:
IO.read(empty_file) #=> ""
IO.read(empty_file, 1) #=> nil
IO.read(one_byte_file, 0, 10) #=> ""
IO.read(one_byte_file, nil, 10) #=> ""
IO.read(one_byte_file, 1, 1...