module GirFFI
  module InterfaceBase
    def gir_ffi_builder
      self.const_get :GIR_FFI_BUILDER
    end

    def setup_instance_method name
      gir_ffi_builder.setup_instance_method name
    end

    def wrap ptr
      ptr.to_object
    end
  end
end

require 'gir_ffi/type_base'

module GirFFI
  module InterfaceBase
    include TypeBase

    def setup_instance_method name
      gir_ffi_builder.setup_instance_method name
    end

    def wrap ptr
      ptr.to_object
    end
  end
end

Replace duplicate method with included module
Replace duplicate method with included module
