class GirFFI::UserDefinedTypeInfo

Represents a user defined type, conforming, as needed, to the interface of GObjectIntrospection::IObjectInfo.

Public Class Methods

new(klass, &block) click to toggle source
# File lib/gir_ffi/user_defined_type_info.rb, line 7
def initialize klass, &block
  @klass = klass
  @properties = []
  self.instance_eval(&block) if block
end

Public Instance Methods

described_class() click to toggle source
# File lib/gir_ffi/user_defined_type_info.rb, line 13
def described_class
  @klass
end
install_property(property) click to toggle source
# File lib/gir_ffi/user_defined_type_info.rb, line 17
def install_property property
  @properties << UserDefinedPropertyInfo.new(property)
end
properties() click to toggle source
# File lib/gir_ffi/user_defined_type_info.rb, line 21
def properties
  @properties
end