524件ヒット
[1-100件を表示]
(0.034秒)
ライブラリ
クラス
- Coverage (36)
-
DRb
:: DRbServer (22) - Date (11)
- DateTime (11)
-
Net
:: POP3 (66) - Object (11)
-
Psych
:: Handler (33) -
Psych
:: Nodes :: Document (11) -
RDoc
:: CodeObject (11) - String (22)
- Symbol (10)
-
Thread
:: ConditionVariable (22) -
Thread
:: Queue (33) -
Thread
:: SizedQueue (33)
モジュール
- DRb (11)
- GC (22)
-
GC
:: Profiler (11) - Kernel (22)
- ObjectSpace (11)
- Psych (11)
キーワード
- Emitter (11)
-
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - WIN32OLE (11)
- broadcast (11)
-
delete
_ all (22) - deq (22)
-
end
_ with? (16) - exit (11)
- exit! (11)
- foreach (11)
-
garbage
_ collect (22) - load (11)
-
net
/ smtp (3) - new (33)
- optparse (11)
- parse (22)
-
peek
_ result (11) - pop (22)
-
raw
_ data (11) -
respond
_ to? (11) - result (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) - running? (7)
- shift (22)
- signal (11)
-
start
_ document (11) -
start
_ mapping (11) -
start
_ sequence (11) -
start
_ service (11) -
start
_ with? (16) -
stop
_ doc (11) - verbose= (11)
- セキュリティモデル (11)
検索結果
先頭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(設定しな...