別のキーワード
ライブラリ
- ビルトイン (77)
- csv (99)
- open-uri (22)
- openssl (11)
- optparse (22)
- rake (55)
-
rubygems
/ dependency _ installer (11) -
webrick
/ httpservlet / filehandler (11)
クラス
- CSV (99)
-
Gem
:: DependencyInstaller (11) -
OpenSSL
:: SSL :: SSLContext (11) -
RDoc
:: Options (11) -
Rake
:: Application (11) -
Rake
:: FileTask (22) - String (33)
-
WEBrick
:: HTTPServlet :: FileHandler (11)
モジュール
-
Gem
:: InstallUpdateOptions (11) - Kernel (44)
- OpenURI (22)
-
OptionParser
:: Arguable (22) - Rake (22)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
DEFAULT
_ OPTIONS (22) - Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (4) - application (11)
- application= (11)
- encode (33)
- encoding (11)
- foreach (11)
-
install
_ update _ defaults _ str (11) - irb (11)
- needed? (11)
- new (22)
- open (44)
-
open
_ uri (22) - rake (11)
- rdoc (11)
- read (11)
- readlines (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ commands / fetch _ command (11) -
rubygems
/ commands / install _ command (11) -
rubygems
/ commands / list _ command (11) -
rubygems
/ commands / outdated _ command (11) -
rubygems
/ commands / query _ command (11) -
rubygems
/ commands / search _ command (11) -
rubygems
/ commands / specification _ command (11) -
set
_ params (11) - spawn (44)
検索結果
先頭5件
-
OptionParser
:: Arguable # options -> OptionParser (18124.0) -
自身をパースするための OptionParser オブジェクトを返します。 初回呼び出し時に自動的に生成されます。 この OptionParser#default_argv には self がセットされています。
...スするための OptionParser オブジェクトを返します。
初回呼び出し時に自動的に生成されます。
この OptionParser#default_argv には self がセットされています。
ブロックを与えた場合は、OptionParser を引数としてブロックを実行し......行途中で OptionParser::ParseError
が発生した場合は、全て rescue し、エラーメッセージを出力し、
nil を返します。
//emlist[][ruby]{
require 'optparse'
o = nil
ARGV.options{|opt|
opt.on('-a'){ o = true }
opt.parse!
}
p o #=> true
//}... -
OptionParser
:: Arguable # options {|opt| . . . } -> object | nil (18124.0) -
自身をパースするための OptionParser オブジェクトを返します。 初回呼び出し時に自動的に生成されます。 この OptionParser#default_argv には self がセットされています。
...スするための OptionParser オブジェクトを返します。
初回呼び出し時に自動的に生成されます。
この OptionParser#default_argv には self がセットされています。
ブロックを与えた場合は、OptionParser を引数としてブロックを実行し......行途中で OptionParser::ParseError
が発生した場合は、全て rescue し、エラーメッセージを出力し、
nil を返します。
//emlist[][ruby]{
require 'optparse'
o = nil
ARGV.options{|opt|
opt.on('-a'){ o = true }
opt.parse!
}
p o #=> true
//}... -
Rake
:: Application # options -> OpenStruct (18113.0) -
コマンドラインで与えられたアプリケーションのオプションを返します。
...ケーションのオプションを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.options # => #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false... -
CSV
:: DEFAULT _ OPTIONS -> Hash (12202.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 (12202.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... -
Gem
:: InstallUpdateOptions # install _ update _ defaults _ str -> String (9100.0) -
Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。
Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。
デフォルトのオプションは以下の通りです。
--rdoc --no-force --no-test --wrappers -
RDoc
:: Options # encoding -> Encoding (3006.0) -
コマンドライン引数の --encoding オプションを指定していた場合、指定した エンコーディングに対応する Encoding オブジェクトを返します。
...コマンドライン引数の --encoding オプションを指定していた場合、指定した
エンコーディングに対応する Encoding オブジェクトを返します。
指定しなかった場合は Encoding.default_external の値を返します。... -
WEBrick
:: HTTPServlet :: FileHandler . new(server , root , options = {} , default = WEBrick :: Config :: FileHandler) (214.0) -
FileHandler サーブレットを生成します。ユーザが直接使うことはあまりあり ません。
...トにルートディレクトリとして認識させる、
ローカルのファイルシステムのディレクトリを文字列で与える。
@param options 設定を保存したハッシュ、
@param default デフォルトの設定を保存したハッシュを与える。... -
CSV
. new(data , options = Hash . new) -> CSV (131.0) -
このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。
...インスタンスを指定した場合、CSV#string を使用して
後からデータを取り出すことが出来ます。
@param options CSV をパースするためのオプションをハッシュで指定します。
パフォーマンス上の理由でインス......f those sequences is
found, +data+ is ARGF, Object::STDIN, Object::STDOUT, or
Object::STDERR, or the stream is only available for output, the default
$INPUT_RECORD_SEPARATOR ($/) is used. Obviously,
discovery takes a little time. Set manually if speed is important. Also
note that IO......at are effectively DoS attacks on the parser. However, this
limit can cause a legitimate parse to fail and thus is set to +nil+, or off,
by default.
: :converters
CSV::Converters から取り出した名前の配列です。変換器が一つだけ
の場合は配列に格納する必要... -
Kernel
. # spawn(env , program , *args , options={}) -> Integer (122.0) -
引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。
...ります。
また、第1要素はフルパスで指定しなくても環境変数 PATH から探します。
=== option引数の概要
Hash を options として渡すことで、起動される子プロセスの
* プロセスグループ
* resource limit
* カレントディレクトリ......//emlist[][ruby]{
pid = spawn(command, :close_others=>true) # close 3,4,5,...
pid = spawn(command, :close_others=>false) # don't close 3,4,5,... (default)
//}
これを利用して spawn を IO.popen のように使うことができます。
//emlist[][ruby]{
# similar to r = IO.popen(command)
r,......ogram 文字列か2要素の配列を指定します。
@param args 渡される引数です。0 個以上の文字列を指定します。
@param options オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
@raise...