るりまサーチ

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

別のキーワード

  1. kernel $input_record_separator
  2. kernel $output_record_separator
  3. english $input_record_separator
  4. context record_location
  5. english $output_record_separator

ライブラリ

クラス

モジュール

検索結果

Shell#record_separator -> String (24201.0)

@todo

@todo

Kernel$$INPUT_RECORD_SEPARATOR -> String | nil (12213.0)

$/ の別名

...$/ の別名

require "English"

$INPUT_RECORD_SEPARATOR = '|'
array = []
while line = DATA.gets
array << line
end
p
array #=> ["ugo|", "ego|", "fogo\n"]

__END__
ugo|ego|fogo...

Shell.default_record_separator -> String (12202.0)

執筆者募集

...者募集

Shell で用いられる入力レコードセパレータを表す文字列を設定および参照します。
なにも指定しない場合は$/ の値が用いられます。

@param rs Shell で用いられる入力レコードセパレータを表す文字列を指定します。...

Shell.default_record_separator=(rs) (12202.0)

執筆者募集

...者募集

Shell で用いられる入力レコードセパレータを表す文字列を設定および参照します。
なにも指定しない場合は$/ の値が用いられます。

@param rs Shell で用いられる入力レコードセパレータを表す文字列を指定します。...

Shell#record_separator=(rs) (12201.0)

@todo

@todo

絞り込み条件を変える

Kernel$$OUTPUT_RECORD_SEPARATOR -> String | nil (6207.0)

$\ の別名

...$\ の別名

require "English"

p
rint "hoge\nhuga\n"
$OUTPUT_RECORD_SEPARATOR = "\n"
p
rint "fuge"
p
rint "ugo"
# end of sample.rb

ruby sample.rb
hoge
huga
fuge
ugo...

Kernel$$RS -> String | nil (6013.0)

$/ の別名

...$/ の別名

require "English"

$INPUT_RECORD_SEPARATOR = '|'
array = []
while line = DATA.gets
array << line
end
p
array #=> ["ugo|", "ego|", "fogo\n"]

__END__
ugo|ego|fogo...

CSV.new(data, options = Hash.new) -> CSV (118.0)

このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。

...を渡してください。

@param data String か IO のインスタンスを指定します。
String のインスタンスを指定した場合、CSV#string を使用して
後からデータを取り出すことが出来ます。

@param options CSV をパースする...
...こで上書きするようにしてください。

: :col_sep
フィールドの区切り文字列を指定します。この文字列はパースする前にデータの
エンコーディングに変換されます。
: :row_sep
行区切りの文字列を指定します。:auto という...
...r output, the default
$INPUT_RECORD_SEPARATOR ($/) is used. Obviously,
discovery takes a little time. Set manually if speed is important. Also
note that IO objects should be opened in binary mode on Windows if this
feature will be used as the line-ending translation can cause
p
roble...