class GObjectIntrospection::ArgInfo - gobject-introspection-3.1.1 Documentation

# class GObjectIntrospection::ArgInfo

### Public Instance Methods

gclosure?() click to toggle source

    # File lib/gobject-introspection/arg-info.rb, line 19
    def gclosure?
      @gclosure_p ||= nil
      return @gclosure_p unless @gclosure_p.nil?
      @gclosure_p = compute_gclosure?
    end

### Private Instance Methods

compute_gclosure?() click to toggle source

    # File lib/gobject-introspection/arg-info.rb, line 26
    def compute_gclosure?
      type_info = type
      return false if type_info.tag != TypeTag::INTERFACE

      struct_info = type_info.interface
      struct_info.gtype.name == "GClosure"
    end