Module: GLib::ListMethods::ListClassMethods
- Defined in:
- lib/ffi-glib/list_methods.rb
Overview
Common class methods for List and SList
Instance Method Summary collapse
Instance Method Details
#new(type) ⇒ Object
70 71 72 73 74 75 76 |
# File 'lib/ffi-glib/list_methods.rb', line 70 def new type _real_new.tap do |it| struct = self::Struct.new(FFI::Pointer.new(0)) it.instance_variable_set :@struct, struct it.instance_variable_set :@element_type, type end end |