るりまサーチ

最速Rubyリファレンスマニュアル検索!
1999件ヒット [1-100件を表示] (0.038秒)

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer new
  5. integer times

ライブラリ

モジュール

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

CSV::FieldInfo#line -> Integer (18208.0)

行番号を返します。

...'

csv = CSV.new("date1,date2,date3\n2018-07-09,2018-07-10\n2018-08-09,2018-08-10", headers: true)
csv.convert do |field,field_info|
p field_info.line
Date.parse(field)
end
p csv.to_a

# => 2
# => 2
# => 3
# => 3
# => [#<CSV::Row "date1":#<Date: 2018-07-09 ((2458309j,0s,0n),+0s,2299161j)> "date2...

Psych::Parser::Mark#line -> Integer (18202.0)

先頭からの行数。

先頭からの行数。

Psych::SyntaxError#line -> Integer (18202.0)

エラーが生じた行番号を返します。

エラーが生じた行番号を返します。

REXML::ParseException#line -> Integer (18202.0)

パースエラーが起きた(XML上の)場所を行数で返します。

パースエラーが起きた(XML上の)場所を行数で返します。

Kernel$$INPUT_LINE_NUMBER -> Integer (6221.0)

$. の別名

...$. の別名

1 e
2 f
3 g
4 h
5 i
# end of a.txt

require "English"

File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb

ruby sample.rb a.txt
#=> 5...

絞り込み条件を変える

Socket::Constants::SO_OOBINLINE -> Integer (6217.0)

Leave received out-of-band data in-line。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Leave received out-of-band data in-line
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see sys/socket.h(header), getsockopt(2freebsd),
socket(7linux), Socket::Constants::SOL_SOCKET...

Socket::SO_OOBINLINE -> Integer (6217.0)

Leave received out-of-band data in-line。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Leave received out-of-band data in-line
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see sys/socket.h(header), getsockopt(2freebsd),
socket(7linux), Socket::Constants::SOL_SOCKET...

IO#lineno -> Integer (6213.0)

現在の行番号を整数で返します。実際には IO#gets が呼ばれた回数です。 改行以外のセパレータで gets が呼ばれた場合など、実際の行番号と異なる場合があります。

...にオープンされていなければ発生します。

f = File.new("testfile")
f.lineno #=> 0
f.gets #=> "This is line one\n"
f.lineno #=> 1
f.gets #=> "This is line two\n"
f.lineno #=> 2

@see $....

ObjectSpace.#allocation_sourceline(object) -> Integer (6213.0)

objectの元となったソースファイルの行番号を返します。

...ます。

//emlist[例][ruby]{
require 'objspace'

ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "line:#{ObjectSpace::allocation_sourceline(obj)}" # => line:4
ObjectSpace::trace_object_allocations_stop
//}

@see ObjectSpace.#trace_object_allocations_start,
ObjectSpace.#tra...

Psych::Emitter#line_width -> Integer (6208.0)

「好ましい」行幅を返します。

...「好ましい」行幅を返します。

@see Psych::Emitter#line_width=...

絞り込み条件を変える

<< 1 2 3 ... > >>