種類
- インスタンスメソッド (10)
- 特異メソッド (5)
ライブラリ
- ビルトイン (2)
- csv (5)
-
rexml
/ document (1) -
rubygems
/ specification (7)
クラス
- CSV (3)
-
CSV
:: Table (2) -
Gem
:: Specification (7) - IO (1)
-
REXML
:: Element (1) -
RubyVM
:: InstructionSequence (1)
キーワード
-
add
_ bindir (1) -
default
_ executable (1) -
default
_ executable= (1) - disassemble (1)
- executable (1)
- executable= (1)
- executables (1)
- executables= (1)
- new (1)
- read (1)
- readlines (1)
-
to
_ csv (1) -
to
_ s (1) -
write
_ nonblock (1)
検索結果
先頭5件
-
CSV
. table(path , options = Hash . new) -> CSV :: Table | [Array] (73807.0) -
以下と同等のことを行うメソッドです。
以下と同等のことを行うメソッドです。
//emlist[][ruby]{
CSV.read( path, { headers: true,
converters: :numeric,
header_converters: :symbol }.merge(options) )
//}
@param path ファイル名を指定します。
@param options CSV.new のオプションと同じオプションを指定できます。
@see CSV.read -
Gem
:: Specification # executable=(executable) (55201.0) -
実行可能ファイル名をセットします。
実行可能ファイル名をセットします。
@param executable 実行可能ファイル名を指定します。 -
Gem
:: Specification # executables=(executables) (55201.0) -
実行可能ファイル名のリストをセットします。
実行可能ファイル名のリストをセットします。
@param executables 実行可能ファイル名のリストを指定します。 -
Gem
:: Specification # default _ executable=(executable) (54901.0) -
Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。
Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。
@param executable 実行ファイルを指定します。 -
Gem
:: Specification # default _ executable -> String | nil (54601.0) -
Gem パッケージ内で gem コマンド経由で実行するファイルを返します。
Gem パッケージ内で gem コマンド経由で実行するファイルを返します。 -
Gem
:: Specification # executable -> String (54601.0) -
実行可能ファイル名を返します。
実行可能ファイル名を返します。 -
Gem
:: Specification # executables -> [String] (54601.0) -
実行可能ファイル名のリストを返します。
実行可能ファイル名のリストを返します。 -
IO
# write _ nonblock(string , exception: true) -> Integer | :wait _ writable (37501.0) -
IO をノンブロッキングモードに設定し、string を write(2) システムコールで書き出します。
IO をノンブロッキングモードに設定し、string を write(2) システムコールで書き出します。
write(2) が成功した場合、書き込んだ長さを返します。
EAGAIN, EINTR などは例外 Errno::EXXX として呼出元に報告されます。
書き込んだバイト数(つまり返り値)は String#bytesize の
値より小さい可能性があります。
発生した例外 がErrno::EAGAIN、 Errno::EWOULDBLOCK である場合は、
その例外オブジェクトに IO::WaitWritable が Object#extend
されます。よって IO::Wai... -
CSV
:: Table # to _ csv(options = Hash . new) -> String (18691.0) -
CSV の文字列に変換して返します。
CSV の文字列に変換して返します。
ヘッダを一行目に出力します。その後に残りのデータを出力します。
デフォルトでは、ヘッダを出力します。オプションに :write_headers =>
false を指定するとヘッダを出力しません。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.to_csv # => "a,b,c\n1,2,3\n"
p table.to_csv(write_head... -
CSV
:: Table # to _ s(options = Hash . new) -> String (18691.0) -
CSV の文字列に変換して返します。
CSV の文字列に変換して返します。
ヘッダを一行目に出力します。その後に残りのデータを出力します。
デフォルトでは、ヘッダを出力します。オプションに :write_headers =>
false を指定するとヘッダを出力しません。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.to_csv # => "a,b,c\n1,2,3\n"
p table.to_csv(write_head... -
Gem
:: Specification # add _ bindir(executables) -> Array | nil (18601.0) -
実行コマンドの格納場所を返します。
実行コマンドの格納場所を返します。
@param executables 実行コマンド名を格納した配列を指定します。 -
RubyVM
:: InstructionSequence . disassemble(body) -> String (18373.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
引数 body で指定したオブジェクトから作成した
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合
# /tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::InstructionSequence.disasm(p)
出力:
== disasm: <RubyVM::InstructionSequence:block in <main... -
CSV
. readlines(path , options = Hash . new) -> [Array] | CSV :: Table (10381.0) -
CSV ファイルを配列の配列にするために使います。 headers オプションに偽でない値を指定した場合は CSV::Table オブジェクトを返します。
CSV ファイルを配列の配列にするために使います。
headers オプションに偽でない値を指定した場合は CSV::Table オブジェクトを返します。
@param path CSV ファイルのパスを指定します。
@param options CSV.new のオプションと同じオプションを指定できます。
:encoding というキーを使用すると入力のエンコーディングを指定することができます。
入力のエンコーディングか Encoding.default_external と異なる場合は
必ず指定... -
REXML
:: Element . new(arg = UNDEFINED , parent = nil , context = nil) -> REXML :: Element (9919.0) -
要素オブジェクトを生成します。
要素オブジェクトを生成します。
arg が文字列の場合、新たな要素の名前は arg に設定されます。
arg が REXML::Element オブジェクトの場合は、
新たな要素の名前、属性、context が arg のもので初期化されます。
parent で親ノードを指定します。
context には hash table で要素のコンテキストを指定します。
基本的には text node (REXML::Text) での特別な文字、特に空白について
の取り扱いを指定できます。
以下の Symbol をハッシュのキーとして使います。
: :respect_whitespace
... -
CSV
. read(path , options = Hash . new) -> [Array] | CSV :: Table (1381.0) -
CSV ファイルを配列の配列にするために使います。 headers オプションに偽でない値を指定した場合は CSV::Table オブジェクトを返します。
CSV ファイルを配列の配列にするために使います。
headers オプションに偽でない値を指定した場合は CSV::Table オブジェクトを返します。
@param path CSV ファイルのパスを指定します。
@param options CSV.new のオプションと同じオプションを指定できます。
:encoding というキーを使用すると入力のエンコーディングを指定することができます。
入力のエンコーディングか Encoding.default_external と異なる場合は
必ず指定...