9件ヒット
[1-9件を表示]
(0.107秒)
種類
- インスタンスメソッド (7)
- クラス (2)
クラス
検索結果
先頭5件
-
Fiddle
:: Closure (72145.0) -
コールバック関数を表すクラスです。
コールバック関数を表すクラスです。
Ruby のメソッド(call)を C の関数ポインタとして表現するためのクラスです。
FFI の closure の wrapper です。
利用法としては、このクラスのサブクラスを作って
そのサブクラスに call メソッドを定義し、
new でオブジェクトを生成することで利用します。
require 'fiddle'
include Fiddle # TYPE_* を使うために include する
class Compare < Fiddle::Closure
# qsort の比較関数は 型が int(*)(v... -
Fiddle
:: Closure # ctype -> Integer (36301.0) -
返り値の型を返します。
返り値の型を返します。 -
RSS
:: Maker :: RSS20 :: Items :: Item :: Enclosure # type (36301.0) -
@todo
@todo -
RSS
:: Maker :: RSS20 :: Items :: Item :: Enclosure # type=() (36301.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Item :: Enclosure # type (36301.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Item :: Enclosure # type= (36301.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Item :: Enclosure # url (36301.0) -
@todo
@todo -
Fiddle
:: Closure :: BlockCaller (36055.0) -
Ruby のブロックをラップしたコールバック関数を表すクラスです。
Ruby のブロックをラップしたコールバック関数を表すクラスです。
Ruby のブロックを C の関数ポインタとして表現するためのクラスです。
require 'fiddle'
include Fiddle
libc = Fiddle.dlopen("/lib/libc.so.6")
qs = Fiddle::Function.new(libc["qsort"],
[TYPE_VOIDP, TYPE_INT, TYPE_INT, TYPE_VOIDP],
TYP... -
LocalJumpError
# reason -> Symbol (9637.0) -
例外を発生させた原因をシンボルで返します。
例外を発生させた原因をシンボルで返します。
返す値は以下のいずれかです。
* :break
* :redo
* :retry
* :next
* :return
* :noreason
例:
def foo
proc { return 10 }
end
begin
foo.call
rescue LocalJumpError => err
p err # => #<LocalJumpError: return from block-closure>
p err.reason ...