Class: GObjectIntrospection::ArgInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/gobject-introspection/arg-info.rb

Instance Method Summary collapse

Instance Method Details

#gclosure?Boolean

Returns:

  • (Boolean)


19
20
21
22
23
# 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

#inspectObject



34
35
36
37
38
39
40
41
42
# File 'lib/gobject-introspection/arg-info.rb', line 34

def inspect
  super.gsub(/>\z/) do
    " name=#{name.inspect}" +
      " optional?=#{optional?.inspect}" +
      " may_be_null?=#{may_be_null?.inspect}" +
      " caller_allocates?=#{caller_allocates?.inspect}" +
      " type=#{type.inspect}>"
  end
end

#signatureObject



25
26
27
28
29
30
31
32
# File 'lib/gobject-introspection/arg-info.rb', line 25

def signature
  sig = "#{name}:"
  sig << " (optional)" if optional?
  sig << " (may be null)" if may_be_null?
  sig << " (caller allocates)" if caller_allocates?
  sig << " #{type.description}"
  sig
end