るりまサーチ

最速Rubyリファレンスマニュアル検索!
387件ヒット [1-100件を表示] (0.012秒)
トップページ > クエリ:closure[x]

別のキーワード

  1. closure new
  2. closure to_i
  3. closure args
  4. closure ctype
  5. fiddle closure

検索結果

<< 1 2 3 ... > >>

RSS::Rss::Channel::Item#enclosure (6100.0)

@todo

@todo

RSS::Rss::Channel::Item#enclosure= (6100.0)

@todo

@todo

Fiddle::Closure (6024.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::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 引数...

RSS::Maker::ItemsBase::ItemBase#enclosure (3100.0)

@todo

@todo

絞り込み条件を変える

<< 1 2 3 ... > >>