444件ヒット
[1-100件を表示]
(0.034秒)
別のキーワード
ライブラリ
クラス
- Coverage (7)
-
Logger
:: Application (1) -
Net
:: IMAP (11) -
Net
:: POPMail (99) -
Psych
:: Handler (11) -
Psych
:: Nodes :: Document (11) - Thread (22)
-
Thread
:: ConditionVariable (22) -
WEBrick
:: CGI (11) -
WEBrick
:: HTTPServlet :: AbstractServlet (11)
モジュール
- Kernel (22)
- ObjectSpace (44)
- Psych (22)
- Timeout (19)
キーワード
- Application (1)
- ConditionVariable (11)
-
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - Stream (11)
- all (33)
-
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) -
backtrace
_ locations (22) - broadcast (11)
-
caller
_ locations (22) -
cgi
/ session (11) -
do
_ OPTIONS (11) - load (11)
- mail (33)
- new (11)
- parse (11)
- pop (33)
-
rb
_ compile _ file (11) -
rb
_ gc _ mark _ locations (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) - signal (11)
-
start
_ document (11) - starttls (11)
- timeout (19)
-
trace
_ object _ allocations _ start (11) -
trace
_ object _ allocations _ stop (11) - セキュリティモデル (11)
検索結果
先頭5件
-
Logger
:: Application # start -> () (24101.0) -
アプリケーションをスタートさせます。
アプリケーションをスタートさせます。
@return run メソッドの返値を返します。
@raise RuntimeError サブクラスで run メソッドを定義していない場合に発生します。 -
Coverage
. start(option = {}) -> nil (18313.0) -
カバレッジの測定を開始します。既に実行されていた場合には何も起こりません。 ただし、カバレッジ計測中に測定対象を変更しようとした場合は、RuntimeError となります。
...りません。
ただし、カバレッジ計測中に測定対象を変更しようとした場合は、RuntimeError となります。
@param option カバレッジの計測モードを指定します。
:all か "all" を指定すると、全ての種類を計測します。......erage.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(metho... -
ObjectSpace
. # trace _ object _ allocations _ start -> nil (18301.0) -
オブジェクト割り当てのトレースを開始します。
...オブジェクト割り当てのトレースを開始します。
@see ObjectSpace.#trace_object_allocations_stop... -
WEBrick
:: CGI # start(env = ENV , stdin = $ stdin , stdout = $ stdout) -> () (18131.0) -
自身に定義されたサービスを実行します。
...自身に定義されたサービスを実行します。
start メソッドは service メソッドを呼び出し、service メソッドはリクエストに応じて
do_XXX メソッドを呼び出します。このようにして CGI スクリプトは実行されます。
@param env CGI ス......ュか、
それと同じ [] メソッドを持ったオブジェクトを指定します。
@param stdin リクエストデータの入力元を IO オブジェクトで指定します。
@param stdout レスポンスデータの出力先を IO オブジェクトで指定します。... -
Kernel
. # caller _ locations(start = 1 , length = nil) -> [Thread :: Backtrace :: Location] | nil (12543.0) -
現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。
...現在のフレームを Thread::Backtrace::Location の配列で返します。引
数で指定した値が範囲外の場合は nil を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの個数を指定します。
@pa......[例][ruby]{
def test1(start, length)
locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end
def test2(start, length)
test1(start, length)
end
def test3(start, length)
test2(start, length)
end
caller_locations # => []
test3(1, nil......(1, 2)
# => ["/Users/user/test.rb:9:in `test2'", "/Users/user/test.rb:13:in `test3'"]
# => [9, 13]
# => ["/Users/user/test.rb", "/Users/user/test.rb"]
test3(2, 1)
# => ["/Users/user/test.rb:13:in `test3'"]
# => [13]
# => ["/Users/user/test.rb"]
//}
@see Thread::Backtrace::Location, Kernel.#caller... -
Thread
# backtrace _ locations(start = 0 , length = nil) -> [Thread :: Backtrace :: Location] | nil (12507.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...ドの現在のバックトレースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param......ブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.run
thread.backtrace_locations # => ["/path/to/test.rb:1:in `sleep'", "/path/to/test.rb......:1:in `block in <main>'"]
//}
@see Thread::Backtrace::Location... -
Kernel
. # caller _ locations(range) -> [Thread :: Backtrace :: Location] | nil (12443.0) -
現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。
...現在のフレームを Thread::Backtrace::Location の配列で返します。引
数で指定した値が範囲外の場合は nil を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの個数を指定します。
@pa......[例][ruby]{
def test1(start, length)
locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end
def test2(start, length)
test1(start, length)
end
def test3(start, length)
test2(start, length)
end
caller_locations # => []
test3(1, nil......(1, 2)
# => ["/Users/user/test.rb:9:in `test2'", "/Users/user/test.rb:13:in `test3'"]
# => [9, 13]
# => ["/Users/user/test.rb", "/Users/user/test.rb"]
test3(2, 1)
# => ["/Users/user/test.rb:13:in `test3'"]
# => [13]
# => ["/Users/user/test.rb"]
//}
@see Thread::Backtrace::Location, Kernel.#caller... -
Thread
# backtrace _ locations(range) -> [Thread :: Backtrace :: Location] | nil (12407.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...ドの現在のバックトレースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param......ブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.run
thread.backtrace_locations # => ["/path/to/test.rb:1:in `sleep'", "/path/to/test.rb......:1:in `block in <main>'"]
//}
@see Thread::Backtrace::Location... -
void rb
_ gc _ mark _ locations(VALUE *start , VALUE *end) (12300.0) -
-
ObjectSpace
. # allocation _ sourcefile(object) -> String (12212.0) -
objectの元となったソースファイル名を返します。
...uire 'objspace'
ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "file:#{ObjectSpace::allocation_sourcefile(obj)}" # => file:test.rb
ObjectSpace::trace_object_allocations_stop
//}
@see ObjectSpace.#trace_object_allocations_start,
ObjectSpace.#trace_object_allocations_stop... -
ObjectSpace
. # allocation _ sourceline(object) -> Integer (12212.0) -
objectの元となったソースファイルの行番号を返します。
...y]{
require 'objspace'
ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "line:#{ObjectSpace::allocation_sourceline(obj)}" # => line:4
ObjectSpace::trace_object_allocations_stop
//}
@see ObjectSpace.#trace_object_allocations_start,
ObjectSpace.#trace_object_allocations_stop...