るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle type_ssize_t

検索結果

<< 1 2 3 ... > >>

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

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

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

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

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

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

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

行番号を返します。

...

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

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":#<Date: 2018-07-10 ((2458310j,0s,0n),+0s,2299161j)> "date3":nil>, ...]
//}...

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

先頭からの行数。

先頭からの行数。

RubyVM::AbstractSyntaxTree::Node#first_lineno -> Integer (15302.0)

ソースコード中で、self を表すテキストが最初に現れる行番号を返します。

...ソースコード中で、self を表すテキストが最初に現れる行番号を返します。

行番号は1-originです。

//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.first_lineno # => 1
//}...

絞り込み条件を変える

RubyVM::AbstractSyntaxTree::Node#last_lineno -> Integer (15302.0)

ソースコード中で、self を表すテキストが最後に現れる行番号を返します。

...ソースコード中で、self を表すテキストが最後に現れる行番号を返します。

行番号は1-originです。

//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.last_lineno # => 1
//}...

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

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

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

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

RubyVM::InstructionSequence#first_lineno -> Integer (12302.0)

self が表す命令シーケンスの 1 行目の行番号を返します。

...の 1 行目の行番号を返します。

例1:irb で実行した場合

RubyVM::InstructionSequence.compile('num = 1 + 2').first_lineno
# => 1

例2:

# /tmp/method.rb
require "foo-library"
def foo
p :foo
end

RubyVM::InstructionSequence.of(method(:foo)).first_lineno
# => 2...

Net::IMAP::BodyTypeMessage#lines -> Integer (9302.0)

ボディのテキストの行数を返します。

ボディのテキストの行数を返します。

Net::IMAP::BodyTypeText#lines -> Integer (9302.0)

ボディの行数を返します。

ボディの行数を返します。

絞り込み条件を変える

<< 1 2 3 ... > >>