638件ヒット
[601-638件を表示]
(0.081秒)
ライブラリ
- ビルトイン (350)
- csv (84)
-
irb
/ cmd / help (12) -
irb
/ input-method (24) - optparse (24)
- rake (24)
- zlib (120)
クラス
-
ARGF
. class (108) - BasicObject (12)
- Binding (12)
- CSV (72)
-
CSV
:: FieldInfo (12) - Enumerator (24)
-
Enumerator
:: Yielder (6) - IO (56)
-
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ReadlineInputMethod (24) - Module (36)
- OptionParser (24)
-
Rake
:: FileList (12) -
RubyVM
:: InstructionSequence (12) - String (36)
- Thread (24)
- TracePoint (12)
-
Zlib
:: GzipReader (120)
モジュール
- Enumerable (12)
- Kernel (12)
キーワード
-
add
_ trace _ func (12) - chunk (12)
-
class
_ eval (12) -
const
_ source _ location (12) - convert (36)
- each (72)
-
each
_ line (96) - egrep (12)
- eof (12)
- eof? (24)
- eval (12)
- execute (12)
-
field
_ size _ limit (12) - file (12)
-
first
_ lineno (12) -
inplace
_ mode= (12) -
instance
_ eval (12) - lineno (24)
- lineno= (12)
-
module
_ eval (12) - next (12)
-
next
_ values (12) - pos (12)
- pos= (12)
- pread (8)
-
readable
_ atfer _ eof? (12) - readline (24)
- readlines (24)
-
set
_ trace _ func (12) - stat (12)
- sum (12)
- summarize (24)
- tell (12)
-
to
_ proc (6)
検索結果
先頭4件
-
IO
# tell -> Integer (19.0) -
ファイルポインタの現在の位置を整数で返します。
...タの現在の位置を整数で返します。
@raise IOError 既に close されている場合に発生します。
//emlist[例][ruby]{
IO.write("testfile", "This is line one\n")
File.open("testfile") do |f|
f.pos # => 0
f.gets # => "This is line one\n"
f.pos # => 17
end
//}... -
CSV
# field _ size _ limit -> Integer (13.0) -
フィールドサイズの最大値を返します。
...csv = CSV.new(DATA)
csv.field_size_limit # => nil
p csv.read # => [["a", "b"], ["\n2\n2\n", ""]]
DATA.rewind
csv = CSV.new(DATA, field_size_limit: 4)
p csv.field_size_limit # => 4
csv.read # => #<CSV::MalformedCSVError: Field size exceeded on line 2.>
__END__
"a","b"
"
2
2
",""
//}
@see CSV.new... -
Enumerator
# next _ values -> Array (13.0) -
「次」のオブジェクトを配列で返します。
...し、 IO#each_line のようにおおもとの列挙メカニズムが副作用を
伴っている場合には影響があり得ます。
//emlist[例: next と next_values の違いを][ruby]{
o = Object.new
def o.each
yield
yield 1
yield 1, 2
yield nil
yield [1, 2]
end
e = o.to_enum
p... -
OptionParser
# summarize(to = [] , width = self . summary _ width , max = width - 1 , indent= self . summary _ indent) -> () (8.0) -
サマリを指定された to へと加えていきます。
...by]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summarize(["description\n"], 10, 8, " ")
# => ["descripti...