module GirFFI::Builder::Type::WithMethods

Implements method creation for types such as, :union, :struct, :object, :interface.

Public Instance Methods

has_instance_method(method) click to toggle source
# File lib/gir_ffi/builder/type/with_methods.rb, line 20
def has_instance_method method
  !!instance_method_introspection_data(method)
end
setup_instance_method(method) click to toggle source
# File lib/gir_ffi/builder/type/with_methods.rb, line 15
def setup_instance_method method
  go = instance_method_introspection_data method
  attach_and_define_method method, go, build_class
end
setup_method(method) click to toggle source
# File lib/gir_ffi/builder/type/with_methods.rb, line 10
def setup_method method
  go = method_introspection_data method
  attach_and_define_method method, go, meta_class
end