種類
- インスタンスメソッド (276)
- 特異メソッド (124)
- 文書 (12)
ライブラリ
クラス
- Coverage (40)
-
DRb
:: DRbServer (12) - Date (60)
-
Net
:: HTTP (36) -
Net
:: POP3 (24) -
Net
:: SMTP (120) - Object (12)
-
OpenSSL
:: SSL :: SSLServer (24) -
Psych
:: Visitors :: YAMLTree (24) -
REXML
:: Parsers :: PullEvent (12) - String (24)
- Symbol (12)
キーワード
- APOP (12)
-
capable
_ cram _ md5 _ auth? (12) -
capable
_ login _ auth? (12) -
capable
_ plain _ auth? (12) -
capable
_ starttls? (12) -
end
_ with? (18) - esmtp= (12)
-
peek
_ result (12) -
proxy
_ from _ env= (12) -
proxy
_ from _ env? (12) -
respond
_ to? (12) - result (12)
-
ruby 1
. 8 . 4 feature (12) - running? (8)
- ssl? (12)
-
start
_ element? (12) -
start
_ immediately (12) -
start
_ immediately= (12) -
start
_ with? (18) - started (12)
- started? (48)
-
starttls
_ always? (12) -
starttls
_ auto? (12) - tls? (12)
-
valid
_ civil? (12) -
valid
_ commercial? (12) -
valid
_ date? (12) -
valid
_ jd? (12) -
valid
_ ordinal? (12) - verbose (12)
検索結果
先頭5件
-
Coverage
. start(option = {}) -> nil (18173.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],
# :br......anches=>
# {[: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}}}
//}... -
Symbol
# start _ with?(*prefixes) -> bool (6238.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?(*prefixes) -> bool (6232.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#en... -
String
# start _ with?(*strs) -> bool (6220.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
:: Visitors :: YAMLTree # started -> bool (6218.0) -
Psych::Visitors::YAMLTree#start をすでに呼び出しているならば 真を返します。
...Psych::Visitors::YAMLTree#start をすでに呼び出しているならば
真を返します。
まだならば偽を返します。... -
Psych
:: Visitors :: YAMLTree # started? -> bool (6218.0) -
Psych::Visitors::YAMLTree#start をすでに呼び出しているならば 真を返します。
...Psych::Visitors::YAMLTree#start をすでに呼び出しているならば
真を返します。
まだならば偽を返します。... -
OpenSSL
:: SSL :: SSLServer # start _ immediately=(bool) (6214.0) -
OpenSSL::SSL::SSLServer#accept で accept したらすぐに TLS/SSL ハンドシェイクを実行するかどうかを設定します。
...した場合は、OpenSSL::SSL::SSLServer#accept で
接続したソケットに対し OpenSSL::SSL::SSLSocket#accept を
呼び、ハンドシェイクを実行します。
デフォルトでは true です。
@param bool 設定する真偽値。
@see OpenSSL::SSL::SSLServer#start_immediately... -
OpenSSL
:: SSL :: SSLServer # start _ immediately -> bool (6208.0) -
OpenSSL::SSL::SSLServer#accept で accept したらすぐに TLS/SSL ハンドシェイクを実行するかどうかを返します。
...OpenSSL::SSL::SSLServer#accept で
accept したらすぐに TLS/SSL ハンドシェイクを実行するかどうかを返します。
@see OpenSSL::SSL::SSLServer#start_immediately=... -
Net
:: SMTP # capable _ starttls? -> bool (6207.0) -
サーバが STARTTLS を広告してきた場合に真を返します。
...サーバが STARTTLS を広告してきた場合に真を返します。
このメソッドは Net::SMTP#start などでセッションを開始
した以降にしか正しい値を返しません。... -
Net
:: SMTP # started? -> bool (6207.0) -
SMTP セッションが開始されていたら真を返します。
...SMTP セッションが開始されていたら真を返します。
セッションがまだ開始していない、もしくは終了している場合には偽を返します。
@see Net::SMTP#start, Net::SMTP#finish... -
REXML
:: Parsers :: PullEvent # start _ element? -> bool (6202.0) -
XML要素の開始タグなら真を返します。
XML要素の開始タグなら真を返します。