summaryrefslogtreecommitdiff
path: root/lib/ffi/variadic.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ffi/variadic.rb')
-rw-r--r--lib/ffi/variadic.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ffi/variadic.rb b/lib/ffi/variadic.rb
index 246b52f..389c53c 100644
--- a/lib/ffi/variadic.rb
+++ b/lib/ffi/variadic.rb
@@ -67,6 +67,11 @@ module FFI
invoker
end
+ # Retrieve Array of parameter types
+ #
+ # This method returns an Array of FFI types accepted as function parameters.
+ #
+ # @return [Array<FFI::Type>]
def param_types
[*@fixed, Type::Builtin::VARARGS]
end