種類
- インスタンスメソッド (231)
- クラス (77)
- モジュール関数 (35)
- 文書 (22)
- 特異メソッド (22)
クラス
モジュール
- Kernel (35)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - BlockCaller (11)
- Closure (11)
- Enclosure (33)
- EnclosureBase (11)
- Proc (11)
- args (11)
- call (11)
- ctype (11)
- enclosure (22)
- enclosure= (11)
-
exit
_ value (11) - lambda (17)
- length (22)
- length= (22)
- new (22)
- proc (18)
- reason (11)
-
to
_ i (11) - type (22)
- type= (22)
- url (22)
- url= (22)
- 手続きオブジェクトの挙動の詳細 (11)
検索結果
先頭5件
-
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