ライブラリ
- ビルトイン (88)
- csv (209)
- fileutils (22)
- getoptlong (11)
- json (44)
-
net
/ imap (22) - open-uri (36)
- openssl (22)
- psych (33)
- rake (22)
-
rdoc
/ generator / json _ index (11) -
rdoc
/ parser (11) -
rdoc
/ parser / c (11) -
rdoc
/ parser / ruby (11) -
rdoc
/ parser / simple (11) -
rdoc
/ rdoc (11) -
rubygems
/ command (22) -
rubygems
/ dependency _ installer (11) -
rubygems
/ installer (11) -
rubygems
/ security (66) -
rubygems
/ server (11) -
rubygems
/ uninstaller (11) - sync (18)
- tempfile (50)
-
webrick
/ cgi (11) -
webrick
/ httpservlet / abstract (22) -
webrick
/ httpservlet / filehandler (11)
クラス
- CSV (209)
-
Encoding
:: Converter (44) -
Gem
:: Command (22) -
Gem
:: DependencyInstaller (11) -
Gem
:: Installer (11) -
Gem
:: Security :: Policy (22) -
Gem
:: Server (11) -
Gem
:: Uninstaller (11) - GetoptLong (11)
-
JSON
:: Parser (11) -
JSON
:: State (22) -
Net
:: IMAP (22) -
OpenSSL
:: SSL :: SSLContext (22) -
Psych
:: Visitors :: YAMLTree (11) -
RDoc
:: Generator :: JsonIndex (11) -
RDoc
:: Parser (11) -
RDoc
:: Parser :: C (11) -
RDoc
:: Parser :: Ruby (11) -
RDoc
:: Parser :: Simple (11) -
RDoc
:: RDoc (11) -
RubyVM
:: InstructionSequence (44) -
Sync
_ m :: Err (6) -
Sync
_ m :: LockModeFailer (6) -
Sync
_ m :: UnknownLocker (6) - Tempfile (50)
-
WEBrick
:: CGI (11) -
WEBrick
:: HTTPServlet :: AbstractServlet (22) -
WEBrick
:: HTTPServlet :: FileHandler (11)
キーワード
- Fail (18)
- [] (11)
-
add
_ common _ option (11) -
add
_ generator (11) -
add
_ trusted _ cert (11) - application (11)
- application= (11)
-
build
_ cert (11) -
build
_ self _ signed _ cert (11) - compile (11)
-
compile
_ file (11) -
compile
_ option= (11) - create (20)
- dump (22)
- filter (33)
- foreach (11)
-
from
_ state (11) - generate (11)
-
generate
_ line (11) -
get
_ instance (11) - instance (22)
- new (274)
- open (78)
-
open
_ uri (22) - parse (22)
-
parse
_ line (11) -
parser
_ for (11) - read (11)
- readlines (11)
- run (11)
-
search
_ convpath (11) -
sign
_ cert (11) - table (11)
-
trusted
_ cert _ path (11)
検索結果
先頭5件
-
FileUtils
. options -> Array (18108.0) -
オプション名の配列を返します。
...オプション名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options
# => ["verbose", "mode", "noop", "parents", "force", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}......オプション名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options
# => ["noop", "verbose", "force", "mode", "parents", "owner", "group", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}... -
FileUtils
. options _ of(mid) -> Array (6108.0) -
与えられたメソッド名で使用可能なオプション名の配列を返します。
...与えられたメソッド名で使用可能なオプション名の配列を返します。
@param mid メソッド名を指定します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options_of(:rm) # => ["noop", "verbose", "force"]
//}... -
Gem
:: Command . common _ options -> Array (6102.0) -
共通の引数を返します。
共通の引数を返します。 -
JSON
:: State . from _ state(options) -> JSON :: State (142.0) -
与えられた options によって生成した JSON::State のインスタンスを返します。
...与えられた options によって生成した JSON::State のインスタンスを返します。
@param options JSON::State のインスタンスか、ハッシュを指定します。
@return options がハッシュである場合は、それによって初期化した JSON::State を......返します。options が JSON::State のインスタンスである場合は単に
options を返します。いずれでも無い場合は、何も設定されていない JSON::State の
インスタンスを返します。
//emlist[例 Hash を指定][ruby]{
require "json"
j... -
CSV
. filter(input , options = Hash . new) {|row| . . . } (134.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| . . . } (134.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| . . . } (134.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
. instance(data = $ stdout , options = Hash . new) -> CSV (127.0) -
このメソッドは CSV.new のように CSV のインスタンスを返します。 しかし、返される値は Object#object_id と与えられたオプションを キーとしてキャッシュされます。
...aram options CSV.new のオプションと同じオプションを指定できます。
//emlist[例][ruby]{
require "csv"
options = { headers: true }
text =<<-EOS
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
EOS
csv = CSV.instance(text, options)
c......sv2 = CSV.instance(text, options)
csv.object_id == csv2.object_id # => true
print csv.read
# => id,first name,last name,age
# 1,taro,tanaka,20
# 2,jiro,suzuki,18
# 3,ami,sato,19
# 4,yumi,adachi,21
//}
@see CSV.new... -
CSV
. instance(data = $ stdout , options = Hash . new) {|csv| . . . } -> object (127.0) -
このメソッドは CSV.new のように CSV のインスタンスを返します。 しかし、返される値は Object#object_id と与えられたオプションを キーとしてキャッシュされます。
...aram options CSV.new のオプションと同じオプションを指定できます。
//emlist[例][ruby]{
require "csv"
options = { headers: true }
text =<<-EOS
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
EOS
csv = CSV.instance(text, options)
c......sv2 = CSV.instance(text, options)
csv.object_id == csv2.object_id # => true
print csv.read
# => id,first name,last name,age
# 1,taro,tanaka,20
# 2,jiro,suzuki,18
# 3,ami,sato,19
# 4,yumi,adachi,21
//}
@see CSV.new... -
RubyVM
:: InstructionSequence . compile _ option=(options) (124.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを引数 options で指定します。
...命令シーケンスのコンパイル時のデフォルトの最適化オプションを引数
options で指定します。
@param options コンパイル時の最適化オプションを true、false、nil、
Hash のいずれかで指定します。true を指定した場合は...