579件ヒット
[1-100件を表示]
(0.019秒)
ライブラリ
クラス
- Coverage (40)
-
DRb
:: DRbServer (24) - Date (12)
- DateTime (12)
-
Net
:: POP3 (72) - Object (12)
-
Psych
:: Handler (36) -
Psych
:: Nodes :: Document (12) -
RDoc
:: CodeObject (12) - String (24)
- Symbol (12)
-
Thread
:: ConditionVariable (24) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36)
モジュール
- DRb (12)
- GC (24)
-
GC
:: Profiler (12) - Kernel (24)
- ObjectSpace (12)
- Psych (15)
キーワード
- Emitter (12)
-
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - WIN32OLE (12)
- broadcast (12)
-
delete
_ all (24) - deq (24)
-
end
_ with? (18) - exit (12)
- exit! (12)
- foreach (12)
-
garbage
_ collect (24) - load (15)
-
net
/ smtp (4) - new (36)
- optparse (12)
- parse (24)
-
peek
_ result (12) - pop (24)
-
raw
_ data (12) -
respond
_ to? (12) - result (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) - running? (8)
- shift (24)
- signal (12)
-
start
_ document (12) -
start
_ mapping (12) -
start
_ sequence (12) -
start
_ service (12) -
start
_ with? (18) -
stop
_ doc (12) - verbose= (12)
- セキュリティモデル (12)
検索結果
先頭5件
- Net
:: POP3 . start(address , port = nil , account=nil , password=nil , isapop=false) -> Net :: POP3 - Net
:: POP3 . start(address , port = nil , account=nil , password=nil , isapop=false) {|pop| . . . . } -> object - Coverage
. start(option = {}) -> nil - GC
. start(full _ mark: true , immediate _ sweep: true) -> nil - String
# start _ with?(*prefixes) -> bool
-
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(設定しな...