660件ヒット
[1-100件を表示]
(0.042秒)
ライブラリ
- ビルトイン (209)
-
cgi
/ core (22) - csv (242)
- json (66)
-
net
/ imap (22) - open-uri (22)
-
rubygems
/ command (22) -
rubygems
/ dependency _ installer (11) -
rubygems
/ security (11)
クラス
- CGI (22)
- CSV (220)
-
CSV
:: Table (22) -
Encoding
:: Converter (11) -
Gem
:: Command (22) -
Gem
:: DependencyInstaller (11) -
JSON
:: Parser (11) -
JSON
:: State (22) -
Net
:: IMAP (22) -
RDoc
:: Options (11) -
RubyVM
:: InstructionSequence (44) - String (33)
モジュール
-
Gem
:: Security (11) - JSON (33)
- Kernel (121)
- OpenURI (22)
キーワード
-
DEFAULT
_ OPTIONS (22) - [] (11)
-
build
_ self _ signed _ cert (11) - compile (11)
-
compile
_ file (11) -
compile
_ option= (11) - encode (33)
- exec (44)
- filter (33)
- foreach (11)
-
from
_ state (11) - generate (11)
-
generate
_ line (11) - header (11)
- instance (22)
- new (55)
- open (44)
-
open
_ uri (22) - optparse (11)
- out (11)
- parse (22)
-
parse
_ line (11) -
pretty
_ generate (11) -
pretty
_ unparse (11) -
primitive
_ convert (11) - read (11)
- readlines (11)
-
ruby 1
. 8 . 4 feature (11) -
show
_ hash (11) - spawn (33)
- starttls (11)
- system (44)
- table (11)
-
to
_ csv (11) -
to
_ s (11)
検索結果
先頭5件
-
Gem
:: Command # options -> Hash (24302.0) -
コマンドで使用するオプションを返します。
コマンドで使用するオプションを返します。 -
Gem
:: Command # merge _ options(new _ options) -> Hash (12509.0) -
与えられたオプションとデフォルトのオプションをマージします。 しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。
...オプションとデフォルトのオプションをマージします。
しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。
@param new_options 新しいコマンドオプションをハッシュで指定します。... -
CSV
:: DEFAULT _ OPTIONS -> Hash (12302.0) -
このオプションは呼び出し側で上書きしなかったときに使用するオプションです。
このオプションは呼び出し側で上書きしなかったときに使用するオプションです。
: :col_sep
","
: :row_sep
:auto
: :quote_char
'"'
: :field_size_limit
nil
: :converters
nil
: :unconverted_fields
nil
: :headers
false
: :return_headers
false
: :header_converters
nil
: :skip_blanks
false
: :force_quotes
false
: :skip_lin... -
Gem
:: DependencyInstaller :: DEFAULT _ OPTIONS -> Hash (12302.0) -
自身を初期化する際に使用するデフォルトのオプションです。
自身を初期化する際に使用するデフォルトのオプションです。
:env_shebang => false,
:domain => :both, # HACK dup
:force => false,
:format_executable => false, # HACK dup
:ignore_dependencies => false,
:security_policy => nil, # HACK NoSecurity requires OpenSSL. Al... -
RDoc
:: Options # show _ hash -> bool (12117.0) -
コマンドライン引数の --show-hash オプションを指定していた場合、true を 返します。そうでない場合は false を返します。
...コマンドライン引数の --show-hash オプションを指定していた場合、true を
返します。そうでない場合は false を返します。... -
RubyVM
:: InstructionSequence . compile _ option=(options) (6335.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを引数 options で指定します。
...ンスのコンパイル時のデフォルトの最適化オプションを引数
options で指定します。
@param options コンパイル時の最適化オプションを true、false、nil、
Hash のいずれかで指定します。true を指定した場合は......また、Hash を指定した
場合は以下のキーに対して、true か false を指定する事で個
別に有効、無効を指定します。
//emlist{
* :inline_const_cache
* :instructions_unification
* :operands_unification
* :peephole_optimization......zed_instruction
* :stack_caching
* :tailcall_optimization
* :trace_instruction
//}
:debug_level をキーに指定した場合は値を数値で指定します。
.new、.compile、.compile_file メソッドの実行の際に option 引数を指定し
た場合はその実行... -
optparse (6312.0)
-
コマンドラインのオプションを取り扱うためのライブラリです。
...のライブラリです。
=== チュートリアル
optparse を使う場合、基本的には
(1) OptionParser オブジェクト opt を生成する。
(2) オプションを取り扱うブロックを opt に登録する。
(3) opt.parse(ARGV) でコマンドラインを実際に parse......ルプ
デフォルトで --help と --version オプションを認識します。
ruby ./sample.rb --help
# => Usage: sample [options]
ruby ./sample.rb --version
# => *出力なし*
--version は、トップレベルに Version 定数が定義されていると......Aoki.
require 'optparse'
parser = OptionParser.new
parser.on('-i') { puts "-i" }
parser.on('-o') { puts '-o' }
subparsers = Hash.new {|h,k|
$stderr.puts "no such subcommand: #{k}"
exit 1
}
subparsers['add'] = OptionParser.new.on('-i') { puts "add -i" }
subparsers['del'] = OptionParser.new.on... -
CSV
. filter(input , options = Hash . new) {|row| . . . } (336.0) -
このメソッドは CSV データに対して Unix のツール群のようなフィルタを構築 するのに便利です。
...ARGF です。
@param output String か IO のインスタンスを指定します。
デフォルトは $stdout です。
@param options ":in_", ":input_" で始まるキーは input にだけ適用されます。
":out_", ":output_" で始まるキーは output に......初期値][ruby]{
# $ echo "header1,header2\nrow1_1,row1_2" > in.csv; ruby test.rb in.csv
require "csv"
options = { headers: true, return_headers: true, write_headers: true }
CSV.filter(options) do |row|
if row.header_row?
row << "header3"
next
end
row << "row1_3"
end
# => header1,......iro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
EOS
File.write('test.csv',content)
options = { headers: true, return_headers: true, write_headers: true }
CSV.filter(File.open("test.csv"), File.open("out.csv", "w"), options) do |row|
if row.header_row?
row << "full name"
next
end
row <<... -
CSV
. filter(input , output , options = Hash . new) {|row| . . . } (336.0) -
このメソッドは CSV データに対して Unix のツール群のようなフィルタを構築 するのに便利です。
...ARGF です。
@param output String か IO のインスタンスを指定します。
デフォルトは $stdout です。
@param options ":in_", ":input_" で始まるキーは input にだけ適用されます。
":out_", ":output_" で始まるキーは output に......初期値][ruby]{
# $ echo "header1,header2\nrow1_1,row1_2" > in.csv; ruby test.rb in.csv
require "csv"
options = { headers: true, return_headers: true, write_headers: true }
CSV.filter(options) do |row|
if row.header_row?
row << "header3"
next
end
row << "row1_3"
end
# => header1,......iro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
EOS
File.write('test.csv',content)
options = { headers: true, return_headers: true, write_headers: true }
CSV.filter(File.open("test.csv"), File.open("out.csv", "w"), options) do |row|
if row.header_row?
row << "full name"
next
end
row <<... -
CSV
. filter(options = Hash . new) {|row| . . . } (336.0) -
このメソッドは CSV データに対して Unix のツール群のようなフィルタを構築 するのに便利です。
...ARGF です。
@param output String か IO のインスタンスを指定します。
デフォルトは $stdout です。
@param options ":in_", ":input_" で始まるキーは input にだけ適用されます。
":out_", ":output_" で始まるキーは output に......初期値][ruby]{
# $ echo "header1,header2\nrow1_1,row1_2" > in.csv; ruby test.rb in.csv
require "csv"
options = { headers: true, return_headers: true, write_headers: true }
CSV.filter(options) do |row|
if row.header_row?
row << "header3"
next
end
row << "row1_3"
end
# => header1,......iro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
EOS
File.write('test.csv',content)
options = { headers: true, return_headers: true, write_headers: true }
CSV.filter(File.open("test.csv"), File.open("out.csv", "w"), options) do |row|
if row.header_row?
row << "full name"
next
end
row <<...