Method: FFI::Library#enum
- Defined in:
- lib/ffi/library.rb
#enum(name, values) ⇒ FFI::Enum #enum(*args) ⇒ FFI::Enum #enum(values) ⇒ FFI::Enum #enum(native_type, name, values) ⇒ FFI::Enum #enum(native_type, *args) ⇒ FFI::Enum #enum(native_type, values) ⇒ FFI::Enum
Create a new Enum.
477 478 479 |
# File 'lib/ffi/library.rb', line 477 def enum(*args) generic_enum(FFI::Enum, *args) end |