るりまサーチ

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

別のキーワード

  1. matrix row
  2. csv header_row?
  3. row []=
  4. csv row_sep
  5. csv row

ライブラリ

クラス

検索結果

UncaughtThrowError#to_s -> String (21207.0)

self を tag を含む文字列表現にして返します。

...self を tag を含む文字列表現にして返します。

//emlist[例][ruby]{
def do_complicated_things
throw :uncaught_label
end

begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.to_s # => "uncaught throw :uncaught_label"
end
//}...

CSV::Row#to_s -> String (18231.0)

自身を CSV な文字列として返します。ヘッダは使用しません。

...自身を CSV な文字列として返します。ヘッダは使用しません。

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

row
= CSV::Row.new(["header1", "header2"], [1, 2])
row
.to_csv # => "1,2\n"
row
.to_csv( {col_sep: "|", row_sep: "<br>"} ) # => "1|2<br>"
//}...

CSV::Row#to_csv -> String (3131.0)

自身を CSV な文字列として返します。ヘッダは使用しません。

...自身を CSV な文字列として返します。ヘッダは使用しません。

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

row
= CSV::Row.new(["header1", "header2"], [1, 2])
row
.to_csv # => "1,2\n"
row
.to_csv( {col_sep: "|", row_sep: "<br>"} ) # => "1|2<br>"
//}...