クラス
- CSV (187)
-
CSV
:: FieldInfo (33) -
CSV
:: Row (33) -
CSV
:: Table (99) -
URI
:: MailTo (22) -
WIN32OLE
_ PARAM (11)
モジュール
- Kernel (352)
キーワード
-
check
_ signedness (22) -
check
_ sizeof (22) -
col
_ sep (11) - convert (33)
-
convertible
_ int (22) - each (11)
- empty? (11)
- encoding (11)
- fields (11)
-
find
_ type (22) -
have
_ func (22) -
have
_ header (22) -
have
_ library (22) -
have
_ macro (22) -
have
_ struct _ member (22) -
have
_ type (22) -
have
_ var (22) - header (11)
-
header
_ convert (33) -
header
_ converters (11) -
header
_ row? (11) - headers= (11)
- index (11)
- inspect (11)
- length (11)
- line (11)
- output? (11)
- push (11)
- read (11)
- readlines (11)
-
return
_ headers? (11) - size (11)
-
to
_ csv (11) -
to
_ s (11) -
try
_ constant (22) -
try
_ func (22) -
try
_ static _ assert (22) -
try
_ type (22) -
try
_ var (22) -
unconverted
_ fields? (11) -
values
_ at (22) -
write
_ headers? (11)
検索結果
先頭5件
-
CSV
# headers -> Array | true | nil (18126.0) -
nil を返した場合は、ヘッダは使用されません。 真を返した場合は、ヘッダを使用するが、まだ読み込まれていません。 配列を返した場合は、ヘッダは既に読み込まれています。
...は既に読み込まれています。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2")
csv.headers # => nil
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.headers # => true
csv.read
csv.headers # =>["header1", "header2"]
//}
@see CSV.new... -
CSV
:: Row # headers -> Array (18108.0) -
この行のヘッダのリストを返します。
...この行のヘッダのリストを返します。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2"], [1, 2])
row.headers # => ["header1", "header2"]
//}... -
CSV
:: Table # headers -> Array (18108.0) -
自身のヘッダ行を返します。
...自身のヘッダ行を返します。
テーブルが空である場合は空の配列を返します。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
table = CSV::Table.new([row])
table.headers # => ["header1", "header2"]
//}... -
URI
:: MailTo # headers -> [[String]] (18108.0) -
自身のヘッダーを文字列の配列の配列として設定します。
...自身のヘッダーを文字列の配列の配列として設定します。
例:
require 'uri'
m = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
p m.headers #=> [["subject", "subscribe"], ["cc", "myaddr"]]... -
CSV
# write _ headers? -> bool (6144.0) -
ヘッダを出力先に書き込む場合は真を返します。 そうでない場合は偽を返します。
...csv.write_headers? # => nil
header = ["header1", "header2"]
row = ["row1_1", "row1_2"]
result = CSV.generate(headers: header, write_headers: false) do |csv|
csv.write_headers? # => false
csv << row
end
result # => "row1_1,row1_2\n"
result = CSV.generate(headers: header, write_headers: true) do......|csv|
csv.write_headers? # => true
csv << row
end
result # => "header1,header2\nrow1_1,row1_2\n"
//}
@see CSV.new... -
CSV
# return _ headers? -> bool (6138.0) -
ヘッダを返す場合は、真を返します。 そうでない場合は、偽を返します。
...eader1,header2\nrow1_1,row1_2", headers: true, return_headers: false)
csv.return_headers? # => false
csv.shift # => #<CSV::Row "header1":"row1_1" "header2":"row1_2">
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true, return_headers: true)
csv.return_headers? # => true
csv.shift # => #<C... -
URI
:: MailTo # headers=(s) (6108.0) -
自身のヘッダーを文字列で設定します。
...を文字列で設定します。
@param s ヘッダーを表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
例:
require 'uri'
m = URI.parse("mailto:nospam@example.com")
m.headers = URI.escape("subject=hello hello")... -
Kernel
# have _ macro(macro , headers = nil , opt = "") -> bool (125.0) -
与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。 そうでない場合は偽を返します。
...与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。
そうでない場合は偽を返します。
@param macro マクロの名前を指定します。
@param headers 追加のヘッダファイルを指定します。
@param o... -
Kernel
# have _ macro(macro , headers = nil , opt = "") { . . . } -> bool (125.0) -
与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。 そうでない場合は偽を返します。
...与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。
そうでない場合は偽を返します。
@param macro マクロの名前を指定します。
@param headers 追加のヘッダファイルを指定します。
@param o... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (119.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
...Returns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS...