983件ヒット
[1-100件を表示]
(0.033秒)
別のキーワード
種類
- インスタンスメソッド (522)
- 特異メソッド (337)
- モジュール関数 (124)
ライブラリ
- ビルトイン (533)
- continuation (24)
- fiddle (84)
- logger (24)
-
minitest
/ unit (17) -
net
/ http (12) - open-uri (4)
- openssl (72)
- readline (12)
-
syslog
/ logger (12) - tracer (36)
- tsort (93)
-
webrick
/ httpproxy (12) -
webrick
/ httpserver (36) -
webrick
/ httpservlet / prochandler (12)
クラス
- BasicObject (24)
- Continuation (24)
- Exception (8)
-
Fiddle
:: Closure (12) -
Fiddle
:: Closure :: BlockCaller (24) -
Fiddle
:: Function (24) -
Fiddle
:: Handle (24) - Logger (12)
-
Logger
:: Formatter (12) - Method (80)
- Module (12)
-
Net
:: HTTP (12) - Object (24)
-
OpenSSL
:: SSL :: SSLContext (60) -
OpenSSL
:: X509 :: Store (12) - Proc (62)
-
Syslog
:: Logger (12) - SystemCallError (48)
- Thread (60)
- TracePoint (31)
- Tracer (36)
- UnboundMethod (6)
-
WEBrick
:: HTTPProxyServer (12) -
WEBrick
:: HTTPServer (36) -
WEBrick
:: HTTPServlet :: ProcHandler (12)
モジュール
- Enumerable (48)
- Kernel (124)
-
MiniTest
:: Assertions (17) - Readline (12)
-
RubyVM
:: AbstractSyntaxTree (10) - TSort (93)
キーワード
- << (14)
- === (32)
- >> (14)
- [] (36)
- abort (12)
-
add
_ filter (24) -
add
_ trace _ func (12) - assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) - bind (6)
- caller (36)
-
caller
_ locations (24) -
completion
_ proc= (12) - curry (22)
- detect (24)
-
display
_ c _ call= (12) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - fail (12)
- find (24)
- formatter= (24)
-
instance
_ eval (24) -
instance
_ method (12) - method (12)
-
mount
_ proc (24) - new (144)
- open (4)
- parameters (7)
-
parse
_ file (10) - raise (12)
-
report
_ on _ exception (18) -
report
_ on _ exception= (18) -
session
_ get _ cb= (12) -
session
_ new _ cb= (12) -
session
_ remove _ cb= (12) -
set
_ trace _ func (24) -
singleton
_ method (12) - skip (1)
-
strongly
_ connected _ components (12) - syscall (12)
-
tmp
_ dh _ callback= (12) - trace (12)
- tsort (12)
-
tsort
_ each (23) -
verify
_ callback= (36) - yield (12)
検索結果
先頭5件
-
Fiddle
:: Closure :: BlockCaller # call(*args) -> object (21107.0) -
wrap しているブロックを呼び出します。
...wrap しているブロックを呼び出します。
そのブロックの返り値がこのメソッドの返り値となります。
@param args 引数... -
Logger
:: Formatter # call(severity , time , progname , msg) -> String (18125.0) -
ログ情報をフォーマットして返します。
...ログ情報をフォーマットして返します。
@param severity ログレベル。
@param time 時間。Time クラスのオブジェクト。
@param progname プログラム名
@param msg メッセージ。... -
Fiddle
:: Function # call(*args) -> Integer|DL :: CPtr|nil (18107.0) -
関数を呼び出します。
...。
: void
nil を返します
: (unsigned) char/short/int/long/long long
C の整数を Ruby の整数に変換します
: void*(つまり任意のポインタ型)
C のポインタを保持した Fiddle::Pointer を返します。
@param args 関数の引数
@see Fiddle::Function.new... -
Method
# call(*args) -> object (15120.0) -
メソッドオブジェクトに封入されているメソッドを起動します。
...@param args self に渡される引数。
@see UnboundMethod#bind_call
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called......せん。
@param args self に渡される引数。
@see UnboundMethod#bind_call
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called with arg 2... -
Method
# call(*args) { . . . } -> object (15120.0) -
メソッドオブジェクトに封入されているメソッドを起動します。
...@param args self に渡される引数。
@see UnboundMethod#bind_call
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called......せん。
@param args self に渡される引数。
@see UnboundMethod#bind_call
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called with arg 2... -
Method
# call(*args) -> object (15114.0) -
メソッドオブジェクトに封入されているメソッドを起動します。
...ません。
@param args self に渡される引数。
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called with arg 2"
//}... -
Method
# call(*args) { . . . } -> object (15114.0) -
メソッドオブジェクトに封入されているメソッドを起動します。
...ません。
@param args self に渡される引数。
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called with arg 2"
//}... -
Continuation
# call(*ret) -> () (15107.0) -
self が記憶した状態を継続します。引数は そのまま Kernel.#callcc の戻り値になります。
...self が記憶した状態を継続します。引数は そのまま
Kernel.#callcc の戻り値になります。
@param ret 継続に復帰した時に返す値を指定します。... -
Proc
# call(*arg) -> () (15107.0) -
手続きオブジェクトを実行してその結果を返します。
.../emlist[例][ruby]{
fib = lambda{|n|
case n
when 0 then 0
when 1 then 1
else
fib.(n - 2) + fib.(n - 1)
end
}
fib.(10) # => 55
//}
@param arg 手続きオブジェクトに与える引数を指定します。
@raise LocalJumpError Procを生成したメソッドからリターンし... -
TracePoint
# parameters -> [object] (6124.0) -
現在のフックが属するメソッドまたはブロックのパラメータ定義を返します。 フォーマットは Method#parameters と同じです。
...hod#parameters と同じです。
@raise RuntimeError :call、:return、:b_call、:b_return、:c_call、:c_return
イベントのためのイベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(a, b = 2)
end
TracePoint.new(:call) do......|tp|
p tp.parameters # => a], [:opt, :b
end.enable do
foo(1)
end
//}
@see Method#parameters, UnboundMethod#parameters, Proc#parameters... -
Kernel
. # caller(range) -> [String] | nil (6118.0) -
start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。
...します。caller の戻り値を $@ に代入することで
例外の発生位置を設定できます。
引数で指定した値が範囲外の場合は nil を返します。
@param start long の範囲を超えない正の整数でスタックレベルを指定します。
@param length 取......ます。
@param range 取得したいスタックの範囲を示す Range オブジェクトを指定します。
@see Kernel.#set_trace_func,Kernel.#raise,
Kernel.#caller_locations
//emlist[例][ruby]{
def foo
p caller(0)
p caller(1)
p caller(2)
p caller(3)
p caller(4)
end
def b......、caller の要素から [ファイル名, 行番号, メソッド名]
を取り出して返します。
//emlist[例][ruby]{
def parse_caller(at)
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
file = $1
line = $2.to_i
method = $3
[file, line, method]
end
end
def foo
p parse_caller(...