class SDL2::ManagedStruct

FFI::ManagedStruct possibly with useful additions.

Public Class Methods

new(*args) { |self| ... } click to toggle source

Allows create and use the struct within a block.

Calls superclass method
# File lib/sdl2/managed_struct.rb, line 7
def initialize(*args, &block)
  SDL2::Debug.log(self){"Initializing with: #{args.inspect}"}
  super(*args)
  if block_given?
    yield self
  end
end