class GirFFI::Builder::Type::Object

Implements the creation of a class representing a GObject Object.

Public Instance Methods

find_property(property_name) click to toggle source
# File lib/gir_ffi/builder/type/object.rb, line 24
def find_property property_name
  info.properties.each do |prop|
    return prop if prop.name == property_name
  end
  if parent
    return superclass.find_property property_name
  end
  raise "Property #{property_name} not found"
end
find_signal(signal_name) click to toggle source
# File lib/gir_ffi/builder/type/object.rb, line 12
def find_signal signal_name
  signal_definers.each do |inf|
    inf.signals.each do |sig|
      return sig if sig.name == signal_name
    end
  end
  if parent
    return superclass.find_signal signal_name
  end
  raise "Signal #{signal_name} not found"
end