種類
- インスタンスメソッド (252)
- クラス (84)
- モジュール関数 (37)
- 文書 (24)
- 特異メソッド (24)
クラス
モジュール
- Kernel (37)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - BlockCaller (12)
- Enclosure (36)
- EnclosureBase (12)
- Proc (12)
- args (12)
- call (12)
- ctype (12)
- enclosure (24)
- enclosure= (12)
-
exit
_ value (12) - lambda (18)
- length (24)
- length= (24)
- new (24)
- proc (19)
- reason (12)
-
to
_ i (12) - type (24)
- type= (24)
- url (24)
- url= (24)
- 手続きオブジェクトの挙動の詳細 (12)
検索結果
先頭5件
-
Fiddle
:: Closure (18024.0) -
コールバック関数を表すクラスです。
...関数を表すクラスです。
Ruby のメソッド(call)を C の関数ポインタとして表現するためのクラスです。
FFI の closure の wrapper です。
利用法としては、このクラスのサブクラスを作って
そのサブクラスに call メソッドを定義......することで利用します。
require 'fiddle'
include Fiddle # TYPE_* を使うために include する
class Compare < Fiddle::Closure
# qsort の比較関数は 型が int(*)(void*, void*) であるため、
# このメソッドには DL::CPtr オブジェクトが渡さ......include する
compare = Class.new(Fiddle::Closure){
def call(x, y)
x.to_s(1) <=> y
end
}.new(TYPE_INT, [TYPE_VOIDP, TYPE_VOIDP])
単に Ruby のブロックを C の(コールバック)関数に変換したい場合は
Fiddle::Closure::BlockCaller を使うほうが簡単です... -
RSS
:: Rss :: Channel :: Item # enclosure (6100.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Item # enclosure= (6100.0) -
@todo
@todo -
RSS
:: Maker :: ItemsBase :: ItemBase :: EnclosureBase (6000.0) -
-
RSS
:: Maker :: RSS09 :: Items :: Item :: Enclosure (6000.0) -
-
RSS
:: Maker :: RSS20 :: Items :: Item :: Enclosure (6000.0) -
RSS 2.0を生成するときだけ利用されます.
RSS 2.0を生成するときだけ利用されます.
url,length,typeを設定する必要があります. -
RSS
:: Rss :: Channel :: Item :: Enclosure (6000.0) -
-
Fiddle
:: Closure . new(ret , args , abi=Fiddle :: Function :: DEFAULT) -> Fiddle :: Closure (3117.0) -
そのクラスの call メソッドを呼びだすような Fiddle::Closure オブジェクトを返します。
...そのクラスの call メソッドを呼びだすような
Fiddle::Closure オブジェクトを返します。
args、ret で関数の引数と返り値の型を指定します。
指定は Fiddle::Function.new と同様なので、そちら
を参照してください。
@param ret 返り値... -
Fiddle
:: Closure :: BlockCaller . new(ret , args , abi=Fiddle :: Function :: DEFAULT) { . . . } -> Fiddle :: Closure :: BlockCaller (3117.0) -
Ruby のブロックを呼び出す Fiddle::Closure オブジェクトを返します。
...Ruby のブロックを呼び出す Fiddle::Closure オブジェクトを返します。
args、ret で関数の引数と返り値の型を指定します。
指定は Fiddle::Function.new と同様なので、そちら
を参照してください。
@param ret 返り値の型
@param args 引数...