るりまサーチ

最速Rubyリファレンスマニュアル検索!
524件ヒット [1-100件を表示] (0.034秒)

別のキーワード

  1. object false
  2. _builtin false
  3. rb_false
  4. false
  5. false object

検索結果

<< 1 2 3 ... > >>

Net::POP3.start(address, port = nil, account=nil, password=nil, isapop=false) -> Net::POP3 (18222.0)

Net::POP3 オブジェクトを生成し、サーバへ接続します。

...以下のコードと同じ動作をします。
require 'net/pop'

Net::POP3.new(address, port, isapop).start(account, password)

使用例:

require 'net/pop'

Net::POP3.start(addr, port, account, password) {|pop|
pop.each_mail do |m|
file.write m.pop
m.delete
end
}...
...バがAPOPを提供していない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します

@see Net::POP3#start...

Net::POP3.start(address, port = nil, account=nil, password=nil, isapop=false) {|pop| .... } -> object (18222.0)

Net::POP3 オブジェクトを生成し、サーバへ接続します。

...以下のコードと同じ動作をします。
require 'net/pop'

Net::POP3.new(address, port, isapop).start(account, password)

使用例:

require 'net/pop'

Net::POP3.start(addr, port, account, password) {|pop|
pop.each_mail do |m|
file.write m.pop
m.delete
end
}...
...バがAPOPを提供していない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します

@see Net::POP3#start...

Coverage.start(option = {}) -> nil (18119.0)

カバレッジの測定を開始します。既に実行されていた場合には何も起こりません。 ただし、カバレッジ計測中に測定対象を変更しようとした場合は、RuntimeError となります。

...ライブラリ を参照してください。

//emlist[bool.rb][ruby]{
def bool(obj)
if obj
true
else
false

end
end
//}

//emlist[][ruby]{
require "coverage"

Coverage.start(:all)
load "bool.rb"
bool(0)
pp Coverage.result
# {"bool.rb"=>
# {:lines=>[1, 1, 1, nil, 0, nil, nil],
#...
...:branches=>
# {[:if, 0, 2, 2, 6, 5]=>
# {[:then, 1, 3, 4, 3, 8]=>1, [:else, 2, 5, 4, 5, 9]=>0}},
# :methods=>{[Object, :bool, 1, 0, 7, 3]=>1}}}

Coverage.start(methods: true)
load "bool.rb"
bool(0)
pp Coverage.result #=> {"bool.rb"=>{:methods=>{[Object, :bool, 1, 0, 7, 3]=>1}}}
//}...

GC.start(full_mark: true, immediate_sweep: true) -> nil (18119.0)

ガーベージコレクトを開始します。

...す。

@param full_mark マイナー GC を動作させる場合は false を、そうでない場
合は true を指定します。

@param immediate_sweep sweep を遅らせる(Lazy Sweep を行う)場合は false
を、そうでない場合は true を指...
...す。将来のバージョンとの互換性も保証されません。また、Ruby の実装がサポー
トしていない場合はキーワード引数を指定しても無視される可能性があります。

//emlist[例][ruby]{
GC.count # => 3
GC.start # => nil
GC.count # => 4
//}...

String#start_with?(*prefixes) -> bool (6143.0)

self の先頭が prefixes のいずれかであるとき true を返します。

...ト)

//emlist[例][ruby]{
"string".start_with?("str") # => true
"string".start_with?("ing") # => false
"string".start_with?("ing", "str") # => true
"string".start_with?(/\w/) # => true
"string".start_with?(/\d/) # => false
//}

@see String#end_with?
@see Stri...

絞り込み条件を変える

Symbol#start_with?(*prefixes) -> bool (6143.0)

self の先頭が prefixes のいずれかであるとき true を返します。

...返します。

(self.to_s.start_with?と同じです。)

@param prefixes パターンを表す文字列または正規表現 (のリスト)

@see Symbol#end_with?

@see String#start_with?

//emlist[][ruby]{
:hello.start_with?("hell") #=> true
:hello.start_with?(/H/i)...
...#=> true

# returns true if one of the prefixes matches.
:hello.start_with?("heaven", "hell") #=> true
:hello.start_with?("heaven", "paradise") #=> false
//}...

String#start_with?(*strs) -> bool (6125.0)

self の先頭が strs のいずれかであるとき true を返します。

...れかであるとき true を返します。

@param strs パターンを表す文字列 (のリスト)

//emlist[例][ruby]{
"string".start_with?("str") # => true
"string".start_with?("ing") # => false
"string".start_with?("ing", "str") # => true
//}

@see String#end_with?...

Psych::Handler#start_document(version, tag_directives, implicit) -> () (6119.0)

YAML ドキュメントの始まりで呼び出されます。

...:tenderlovemaking.com,2009:
--- !squee
start
_document に渡される引数は以下の通りです
version # => [1, 1]
tag_directives # => tenderlovemaking.com,2009:"
implicit # => false

以下の YAML に対しては
- x
- y
start
_document に渡される引数は以...

Psych::Handler#start_mapping(anchor, tag, implicit, style) -> () (6113.0)

mapping の開始を見付けたときに呼び出されます。

...ap が含まれています。
start
_mapping メソッドは 順に以下の引数で呼び出されます。

# anchor tag implicit style
[nil, nil, true, 1 ]
[nil, "tag:yaml.org,2002:map", false, 2 ]
["pewpew", nil...

Psych::Handler#start_sequence(anchor, tag, implicit, style) -> () (6113.0)

sequence の開始を見付けたときに呼び出されます。

...st が含まれています。
start
_sequence メソッドは 順に以下の引数で呼び出されます。

# anchor tag implicit style
[nil, nil, true, 1 ]
[nil, "tag:yaml.org,2002:seq", false, 2 ]
["pewpew", ni...

絞り込み条件を変える

DRb.#start_service(uri=nil, front=nil, config_or_acl=nil) -> () (6107.0)

dRuby のサービス(サーバ)を起動します。

...ンス。
: :verbose
真を指定すると失敗したdRuby経由のメソッドのログを
$stdout に出力します。デフォルトは false
: :tcp_acl
サーバに設定する ACL(Access Control List)。詳しくは ACL
を見てください。デフォルトは nil(設定しな...
<< 1 2 3 ... > >>