1837件ヒット
[1-100件を表示]
(0.027秒)
ライブラリ
- ビルトイン (856)
- csv (120)
-
irb
/ input-method (12) - json (12)
- open-uri (24)
- openssl (24)
- pstore (12)
- readline (432)
-
rubygems
/ package / tar _ header (12) -
rubygems
/ package / tar _ reader (12) -
rubygems
/ specification (12) - socket (72)
- tempfile (36)
- thread (6)
- thwait (18)
- tracer (36)
-
webrick
/ httpproxy (24) -
win32
/ registry (48) -
yaml
/ store (9) - zlib (60)
クラス
- CSV (120)
- Dir (72)
- File (96)
-
Gem
:: Package :: TarHeader (12) -
Gem
:: Package :: TarReader (12) -
Gem
:: Specification (12) - IO (408)
-
IRB
:: ReadlineInputMethod (12) -
JSON
:: Parser (12) - Mutex (2)
-
OpenSSL
:: PKCS7 (24) - PStore (12)
- Socket (24)
- Tempfile (36)
- Thread (222)
-
Thread
:: ConditionVariable (12) -
Thread
:: Mutex (10) -
Thread
:: Queue (16) -
Thread
:: SizedQueue (12) - ThreadGroup (12)
- ThreadsWait (18)
- Tracer (36)
- UNIXServer (48)
-
Win32
:: Registry (48) -
YAML
:: Store (9) -
Zlib
:: GzipReader (60)
オブジェクト
-
Readline
:: HISTORY (168) -
WEBrick
:: NullReader (24)
キーワード
- << (12)
- DEBUG (12)
- DEBUG= (12)
- [] (12)
- []= (12)
-
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) -
all
_ waits (12) -
basic
_ quote _ characters (12) -
basic
_ quote _ characters= (12) -
basic
_ word _ break _ characters (12) -
basic
_ word _ break _ characters= (12) - binread (12)
- clear (12)
-
completer
_ quote _ characters (12) -
completer
_ quote _ characters= (12) -
completer
_ word _ break _ characters (12) -
completer
_ word _ break _ characters= (12) -
completion
_ append _ character (12) -
completion
_ append _ character= (12) -
completion
_ case _ fold (12) -
completion
_ case _ fold= (12) -
completion
_ proc (12) -
completion
_ proc= (12) -
copy
_ stream (24) - current (12)
-
delete
_ at (12) -
display
_ thread _ id (12) -
display
_ thread _ id= (12) -
display
_ thread _ id? (12) - each (24)
-
emacs
_ editing _ mode (12) - empty? (12)
- exclusive (12)
- exit (12)
-
filename
_ quote _ characters (12) -
filename
_ quote _ characters= (12) - fork (12)
- from (12)
-
get
_ screen _ size (12) - gets (12)
-
handle
_ interrupt (12) - input= (12)
- instance (24)
- kill (12)
- length (12)
- link (12)
- list (12)
- main (12)
- new (259)
- open (216)
-
open
_ uri (24) - output= (12)
- pass (12)
-
pending
_ interrupt? (12) - pipe (96)
- pop (12)
- popen (168)
- push (12)
-
read
_ only (12) -
read
_ smime (12) - readable? (12)
-
readable
_ real? (12) - readlines (48)
- readlink (12)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9) - select (12)
-
set
_ screen _ size (12) - shift (12)
- size (12)
- start (12)
- stop (12)
- table (12)
- tcp (24)
-
to
_ s (12) -
vi
_ editing _ mode (12) -
world
_ readable? (12) - wrap (24)
- write (24)
-
write
_ smime (12)
検索結果
先頭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 読み込みに失敗した場合に発生します