るりまサーチ

最速Rubyリファレンスマニュアル検索!
251件ヒット [1-100件を表示] (0.131秒)
トップページ > クエリ:I[x] > クエリ:RI[x] > クエリ:OPTS[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. matrix i

ライブラリ

キーワード

検索結果

<< 1 2 3 > >>

Pathname#write(string, offset=nil, **opts) -> Integer (12408.0)

...

I
O.write(self.to_s, string, offset, **opts)と同じです。

@see IO.write...

OptionParser#summarize(to = [], width = self.summary_width, max = width - 1, indent= self.summary_indent) -> () (12261.0)

サマリを指定された to へと加えていきます。

...m width サマリの幅を整数で指定します。

@param max サマリの最大幅を整数で指定します。

@param indent サマリのインデントを文字列で指定します。

//emlist[例][ruby]{
require "optparse"

opts
= OptionParser.new do |opts|
opts
.on_head("-i", "--init")...
...opts.on("-u", "--update")
opts
.on_tail("-h", "--help")
end

opts
.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts
.summarize(["description\n"], 10, 8, " ")
# => ["description\n", " -i\n", " --init\n", " -u\n", " --update\n", " -h\n", " --help\...

OptionParser#summarize(to = [], width = self.summary_width, max = width - 1, indent= self.summary_indent) {|line| ... } -> () (12261.0)

サマリを指定された to へと加えていきます。

...m width サマリの幅を整数で指定します。

@param max サマリの最大幅を整数で指定します。

@param indent サマリのインデントを文字列で指定します。

//emlist[例][ruby]{
require "optparse"

opts
= OptionParser.new do |opts|
opts
.on_head("-i", "--init")...
...opts.on("-u", "--update")
opts
.on_tail("-h", "--help")
end

opts
.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts
.summarize(["description\n"], 10, 8, " ")
# => ["description\n", " -i\n", " --init\n", " -u\n", " --update\n", " -h\n", " --help\...

Net::Telnet#login(opts, password=nil) -> String (6421.0)

指定したユーザ名とパスワードでログインします。

...

opts
が文字列である場合は、 それをユーザ名、passwordをパスワードと
してログインします。
opts
がハッシュである場合には、"Name" と "Password" をキーとする文字列を
ユーザ名、パスワードとしてログインします。
また、opts...
...がハッシュの場合には以下のオプションが利用できます。

"LoginPrompt" ログインプロンプトを正規表現で指定します。
デフォルト値は /[Ll]ogin[: ]*\z/n です。

"PasswordPrompt" パスワード入力プロンプトを正規表現で指定します。...
...た場合、ホストからの文字列を引数にブロックを逐次実行します。


# 1つめの引数が文字列の場合
telnet.login("your name", "your password")
# 1つめの引数がハッシュの場合
telnet.login("Name" => "your name", "Password" => "your password")...

Net::Telnet#login(opts, password=nil) {|mesg| ...} -> String (6421.0)

指定したユーザ名とパスワードでログインします。

...

opts
が文字列である場合は、 それをユーザ名、passwordをパスワードと
してログインします。
opts
がハッシュである場合には、"Name" と "Password" をキーとする文字列を
ユーザ名、パスワードとしてログインします。
また、opts...
...がハッシュの場合には以下のオプションが利用できます。

"LoginPrompt" ログインプロンプトを正規表現で指定します。
デフォルト値は /[Ll]ogin[: ]*\z/n です。

"PasswordPrompt" パスワード入力プロンプトを正規表現で指定します。...
...た場合、ホストからの文字列を引数にブロックを逐次実行します。


# 1つめの引数が文字列の場合
telnet.login("your name", "your password")
# 1つめの引数がハッシュの場合
telnet.login("Name" => "your name", "Password" => "your password")...

絞り込み条件を変える

OptionParser#summary_indent -> String (6379.0)

サマリを表示する時のインデントを文字列で返します。

.../emlist[例][ruby]{
require "optparse"

opts
= OptionParser.new do |opts|
opts
.on_head("-i", "--init")
opts
.on("-u", "--update")
opts
.on_tail("-h", "--help")
end

opts
.summary_indent # => " "
opts
.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts
.sum...
...mary_indent = " "
opts
.summary_indent # => " "
opts
.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
//}...

Shell::SystemCommand#notify(*opts) -> String (6309.0)

@todo

...@todo

@param opts

@see Shell#notify...

Shell::SystemCommand#notify(*opts) {|message| ... } -> String (6309.0)

@todo

...@todo

@param opts

@see Shell#notify...

OptionParser#environment(env) -> [String] (6219.0)

環境変数 env に対して Shellwords.#shellwords を呼 んで配列にしてから parse を行ないます。

...ise OptionParser::ParseError パースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク
ラスになります。

//emlist[例][ruby]{
require "optparse"

config = {}
opts
= OptionParser.new
opts
...
....on("-r", "--require LIBRARY"){|lib| config[:lib] = lib }

# HOGE_OPT は hoge というプログラム名に対応した名前です
ENV['HOGE_OPT'] = %q{--require lib1 'remain data'}
p opts.environment('HOGE_OPT') # => ["remain data"]
p config # => {:lib=>"lib1"}
//}...

BasicSocket#recvmsg(maxmesglen=nil, flags=0, maxcontrollen=nil, opts={}) -> [String, Addrinfo, Integer, *Socket::AncillaryData] (3614.0)

recvmsg(2) を用いてメッセージを受け取ります。

...ックします。ノンブロッキング方式で通信したい
場合は BasicSocket#recvmsg_nonblock を用います。

maxmesglen, maxcontrollen で受け取るメッセージおよび補助データ
(Socket::AncillaryData)の最大長をバイト単位で指定します。
省略した場合...
...という名前の定数の biwsise OR を取った
ものを渡します。

opts
にはその他のオプションを渡します。今のところ :scm_right => bool
というオプションのみ利用できます。このオプションに
真を渡すと、 SCM_RIGHTS 制御メッセージを...
...れる
I
O オブジェクトを生成します。詳しくは Socket::AncillaryData#unix_rights
を参照してください。

返り値は配列で得られます。

返り値の配列の最初の要素は受け取ったメッセージを表す文字列です。

2番目の要素は connection-le...

絞り込み条件を変える

BasicSocket#recvmsg_nonblock(maxmesglen=nil, flags=0, maxcontrollen=nil, opts={}) -> [String, Addrinfo, Integer, *Socket::AncillaryData] (3608.0)

recvmsg(2) を用いてノンブロッキング方式でメッセージを受け取ります。

...ングの有無以外は BasicSocket#recvmsg と同じです。
詳しくはそちらを参照してください。

@param maxmesglen 受け取るメッセージの最大長
@param flags フラグ
@param maxcontrollen 受け取る補助データの最大長
@param opts ハッシュオプション...

OptionParser#parse!(argv = self.default_argv, into: nil) -> [String] (3361.0)

与えられた argv をパースします。

...

OptionParser#permute! と同様に argv を破壊的にパースします。
環境変数に POSIXLY_CORRECT が設定されている場合は、
OptionParser#order! と同様に振舞います。

@param argv パースしたい引数を文字列の配列で指定します。

@param into オ...
...ションを格納するハッシュを指定します。
指定したハッシュにはオプションの名前をキーとして、OptionParser#onに渡されたブロックの値が格納されます。
キーの名前はロングオプションが定義されていれば...
...ise OptionParser::ParseError パースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク
ラスになります。

//emlist[例][ruby]{
require "optparse"

opts
= OptionParser.new do |opts|
opts
...
<< 1 2 3 > >>