Class: Fiddley::Function
- Inherits:
-
Fiddle::Closure::BlockCaller
- Object
- Fiddle::Closure::BlockCaller
- Fiddley::Function
- Includes:
- Utils
- Defined in:
- lib/fiddley/function.rb
Constant Summary
Constants included from Utils
Utils::SIZET_FORMAT, Utils::SIZET_TYPE
Instance Method Summary collapse
-
#initialize(ret, params, blk) ⇒ Function
constructor
A new instance of Function.
Methods included from Utils
str2value, type2offset_size, type2size, type2str, type2type, value2str
Constructor Details
#initialize(ret, params, blk) ⇒ Function
Returns a new instance of Function.
8 9 10 |
# File 'lib/fiddley/function.rb', line 8 def initialize(ret, params, blk) super(type2type(ret), params.map{|e| type2type(e)}, &blk) end |