381件ヒット
[1-100件を表示]
(0.118秒)
ライブラリ
クラス
-
ARGF
. class (36) - Binding (7)
- CSV (24)
-
CSV
:: FieldInfo (12) - IO (36)
- Module (12)
-
Net
:: IMAP :: BodyTypeMessage (12) -
Net
:: IMAP :: BodyTypeText (12) -
Psych
:: Emitter (12) -
Psych
:: Parser :: Mark (12) -
Psych
:: SyntaxError (24) -
REXML
:: ParseException (24) - Ripper (12)
-
Ripper
:: Filter (12) -
RubyVM
:: AbstractSyntaxTree :: Node (14) -
RubyVM
:: InstructionSequence (12) - String (12)
- StringIO (12)
- Thread (24)
-
Thread
:: Backtrace :: Location (12) - TracePoint (12)
-
Zlib
:: GzipReader (12)
モジュール
- Enumerable (24)
キーワード
-
add
_ trace _ func (12) -
const
_ source _ location (12) - context (12)
-
field
_ size _ limit (12) -
first
_ lineno (19) -
last
_ lineno (7) -
line
_ width (12) - lineno (108)
- lines (24)
- offset (12)
- pos (24)
-
set
_ trace _ func (12) -
source
_ location (7) - sum (36)
- tell (24)
検索結果
先頭5件
-
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) -
ボディの行数を返します。
ボディの行数を返します。