1684件ヒット
[1-100件を表示]
(0.029秒)
ライブラリ
- ビルトイン (783)
- csv (110)
-
irb
/ input-method (11) - json (11)
- open-uri (22)
- openssl (22)
- pstore (11)
- readline (396)
-
rubygems
/ package / tar _ header (11) -
rubygems
/ package / tar _ reader (11) -
rubygems
/ specification (11) - socket (66)
- tempfile (33)
- thread (6)
- thwait (18)
- tracer (33)
-
webrick
/ httpproxy (22) -
win32
/ registry (44) -
yaml
/ store (8) - zlib (55)
クラス
- CSV (110)
- Dir (66)
- File (88)
-
Gem
:: Package :: TarHeader (11) -
Gem
:: Package :: TarReader (11) -
Gem
:: Specification (11) - IO (374)
-
IRB
:: ReadlineInputMethod (11) -
JSON
:: Parser (11) - Mutex (2)
-
OpenSSL
:: PKCS7 (22) - PStore (11)
- Socket (22)
- Tempfile (33)
- Thread (203)
-
Thread
:: ConditionVariable (11) -
Thread
:: Mutex (9) -
Thread
:: Queue (14) -
Thread
:: SizedQueue (11) - ThreadGroup (11)
- ThreadsWait (18)
- Tracer (33)
- UNIXServer (44)
-
Win32
:: Registry (44) -
YAML
:: Store (8) -
Zlib
:: GzipReader (55)
オブジェクト
-
Readline
:: HISTORY (154) -
WEBrick
:: NullReader (22)
キーワード
- << (11)
- DEBUG (11)
- DEBUG= (11)
- [] (11)
- []= (11)
-
abort
_ on _ exception (11) -
abort
_ on _ exception= (11) -
all
_ waits (12) -
basic
_ quote _ characters (11) -
basic
_ quote _ characters= (11) -
basic
_ word _ break _ characters (11) -
basic
_ word _ break _ characters= (11) - binread (11)
- clear (11)
-
completer
_ quote _ characters (11) -
completer
_ quote _ characters= (11) -
completer
_ word _ break _ characters (11) -
completer
_ word _ break _ characters= (11) -
completion
_ append _ character (11) -
completion
_ append _ character= (11) -
completion
_ case _ fold (11) -
completion
_ case _ fold= (11) -
completion
_ proc (11) -
completion
_ proc= (11) -
copy
_ stream (22) - current (11)
-
delete
_ at (11) -
display
_ thread _ id (11) -
display
_ thread _ id= (11) -
display
_ thread _ id? (11) - each (22)
-
emacs
_ editing _ mode (11) - empty? (11)
- exclusive (11)
- exit (11)
-
filename
_ quote _ characters (11) -
filename
_ quote _ characters= (11) - fork (11)
- from (11)
-
get
_ screen _ size (11) - gets (11)
-
handle
_ interrupt (11) - input= (11)
- instance (22)
- kill (11)
- length (11)
- link (11)
- list (11)
- main (11)
- new (237)
- open (198)
-
open
_ uri (22) - output= (11)
- pass (11)
-
pending
_ interrupt? (11) - pipe (88)
- pop (11)
- popen (154)
- push (11)
-
read
_ only (11) -
read
_ smime (11) - readable? (11)
-
readable
_ real? (11) - readlines (44)
- readlink (11)
-
report
_ on _ exception (8) -
report
_ on _ exception= (8) - select (11)
-
set
_ screen _ size (11) - shift (11)
- size (11)
- start (11)
- stop (11)
- table (11)
- tcp (22)
-
to
_ s (11) -
vi
_ editing _ mode (11) -
world
_ readable? (11) - wrap (22)
- write (22)
-
write
_ smime (11)
検索結果
先頭5件
-
IO
. read(path , **opt) -> String | nil (18140.0) -
path で指定されたファイルを offset 位置から length バイト分読み込んで返します。
...合は nil を返します。ただし、length に nil か 0 が指定されている場合は、空文字列 "" を返します。例えば、IO.read(空ファイル) は "" を返します。
引数 length が指定された場合はバイナリ読み込みメソッド、そうでない場合は......ng など
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, 10) #=> nil... -
IO
. read(path , length = nil , **opt) -> String | nil (18140.0) -
path で指定されたファイルを offset 位置から length バイト分読み込んで返します。
...合は nil を返します。ただし、length に nil か 0 が指定されている場合は、空文字列 "" を返します。例えば、IO.read(空ファイル) は "" を返します。
引数 length が指定された場合はバイナリ読み込みメソッド、そうでない場合は......ng など
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, 10) #=> nil... -
IO
. read(path , length = nil , offset = 0 , **opt) -> String | nil (18140.0) -
path で指定されたファイルを offset 位置から length バイト分読み込んで返します。
...合は nil を返します。ただし、length に nil か 0 が指定されている場合は、空文字列 "" を返します。例えば、IO.read(空ファイル) は "" を返します。
引数 length が指定された場合はバイナリ読み込みメソッド、そうでない場合は......ng など
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, 10) #=> nil... -
CSV
. read(path , options = Hash . new) -> [Array] | CSV :: Table (18114.0) -
CSV ファイルを配列の配列にするために使います。 headers オプションに偽でない値を指定した場合は CSV::Table オブジェクトを返します。
...equire "pp"
File.write("test.csv", <<CSV)
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
CSV
pp CSV.read("test.csv")
# => [["id", "first name", "last name", "age"],
# ["1", "taro", "tanaka", "20"],
# ["2", "jiro", "suzuki", "18"],
# ["3", "am......"csv"
File.write("test.csv", <<CSV)
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
CSV
table = CSV.read("test.csv", headers: true)
p table.class # => CSV::Table
p table[0] # => #<CSV::Row "id":"1" "first name":"taro" "last name":"tanaka" "age":"20"... -
WEBrick
:: NullReader . read(*args) -> nil (18102.0) -
常に nil を返します。
常に nil を返します。 -
CSV
. readlines(path , options = Hash . new) -> [Array] | CSV :: Table (6114.0) -
CSV ファイルを配列の配列にするために使います。 headers オプションに偽でない値を指定した場合は CSV::Table オブジェクトを返します。
...equire "pp"
File.write("test.csv", <<CSV)
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
CSV
pp CSV.read("test.csv")
# => [["id", "first name", "last name", "age"],
# ["1", "taro", "tanaka", "20"],
# ["2", "jiro", "suzuki", "18"],
# ["3", "am......"csv"
File.write("test.csv", <<CSV)
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
CSV
table = CSV.read("test.csv", headers: true)
p table.class # => CSV::Table
p table[0] # => #<CSV::Row "id":"1" "first name":"taro" "last name":"tanaka" "age":"20"... -
IO
. binread(path , length = nil , offset = 0) -> String | nil (6107.0) -
path で指定したファイルを open し、offset の所まで seek し、 length バイト読み込みます。
...ine two\nThis is line three\nAnd so on...\n")
IO.binread("testfile") # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
IO.binread("testfile", 20) # => "This is line one\nThi"
IO.binread("testfile", 20, 10) # => "ne one\nThis is line "
//}
@see IO.read... -
Gem
:: Specification . read _ only(*names) -> () (6102.0) -
与えられた属性名を読み取り専用にします。
与えられた属性名を読み取り専用にします。
@param names 属性名を一つ以上指定します。 -
OpenSSL
:: PKCS7 . read _ smime(obj) -> OpenSSL :: PKCS7 (6102.0) -
S/MIME 形式のデータを読み込み、PKCS7 オブジェクトを返します。
S/MIME 形式のデータを読み込み、PKCS7 オブジェクトを返します。
引数 obj からデータを読み込みます。文字列もしくは
IO オブジェクトから読み出すことができます。
@param obj データを読み出すオブジェクト
@raise OpenSSL::PKCS7::PKCS7Error 読み込みに失敗した場合に発生します -
File
. readable?(path) -> bool (6101.0) -
FileTest.#readable? と同じです。
...FileTest.#readable? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。...