るりまサーチ

最速Rubyリファレンスマニュアル検索!
4660件ヒット [1-100件を表示] (0.200秒)
トップページ > クエリ:i[x] > クエリ:-[x] > クエリ:t[x] > クエリ:line[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

モジュール

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

IRB::ReadlineInputMethod#line(line_no) -> String (30724.0)

引数 line_no で指定した過去の入力を行単位で返します。

...引数 line_no で指定した過去の入力を行単位で返します。

@param line_no 取得する行番号を整数で指定します。...

StringScanner#beginning_of_line? -> bool (30501.0)

スキャンポインタが行頭を指しているなら true を、 行頭以外を指しているなら false を返します。

... true を、
行頭以外を指しているなら false を返します。

行頭の定義は、文字列先頭かまたは \n の直後を指していることです。
文字列末尾は必ずしも行頭ではありません。

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

s = StringScanner.new("test...
...\nstring")
s.bol? # => true
s.scan(/\w+/)
s.bol? # => false
s.scan(/\n/)
s.bol? # => true
s.scan(/\w+/)
s.bol? # => false
//}...

IRB::StdioInputMethod#line(line_no) -> String (27724.0)

引数 line_no で指定した過去の入力を行単位で返します。

...引数 line_no で指定した過去の入力を行単位で返します。

@param line_no 取得する行番号を整数で指定します。...

PrettyPrint.singleline_format(output = &#39;&#39;, maxwidth = 79, newline = "\n", genspace = lambda{|n| &#39; &#39; * n}) {|pp| ...} -> object (27700.0)

PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。

...PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。
PrettyPrint.format に似ていますが、改行しません。

引数 maxwidth, newline と genspace は無視されます。ブロック中の breakable の実行は、
改行せずに text...
...の実行であるかのように扱います。

@param output 出力先を指定します。output は << メソッドを持っていなければなりません。

@param maxwidth 無視されます。

@param newline 無視されます。

@param genspace 無視されます。...

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

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

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

絞り込み条件を変える

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

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

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

Kernel$$INPUT_LINE_NUMBER -> Integer (24625.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...

CSV::FieldInfo#line -> Integer (24579.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 ((24...
...58309j,0s,0n),+0s,2299161j)> "date2":#<Date: 2018-07-10 ((2458310j,0s,0n),+0s,2299161j)> "date3":nil>, ...]
//}...

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

先頭からの行数。

先頭からの行数。

Readline.completer_quote_characters -> String (24500.0)

ユーザの入力の補完を行う際、スペースなどの単語の区切りを クオートするための複数の文字で構成される文字列を取得します。

...ーザの入力の補完を行う際、スペースなどの単語の区切りを
クオートするための複数の文字で構成される文字列を取得します。

@raise NotImplementedError サポートしていない環境で発生します。

@see Readline.completer_quote_characters=...

絞り込み条件を変える

<< 1 2 3 ... > >>