class GObjectIntrospection::StructInfo

Public Instance Methods

match?(value) click to toggle source
Calls superclass method
# File lib/gobject-introspection/struct-info.rb, line 28
def match?(value)
  case gtype.name
  when "void"
    # TODO
    false
  when "CairoSurface"
    if Object.const_defined?(:Cairo)
      value.is_a?(Cairo::Surface)
    else
      false
    end
  else
    super
  end
end