Class: GObjectIntrospection::IFunctionInfo
Overview
Wraps a GIFunctionInfo struct. Represents a function or method.
Instance Attribute Summary
Attributes inherited from IBaseInfo
#pointer
Instance Method Summary
collapse
#argument_ffi_types, #full_name, #return_ffi_type
#safe_name
#arg, #caller_owns, #can_throw_gerror?, #instance_ownership_transfer, #may_return_null?, #n_args, #return_type, #skip_return?
#argument_ffi_types
Methods inherited from IBaseInfo
#==, #attribute, build_array_method, build_finder_method, #container, #deprecated?, #info_type, #initialize, make_finalizer, #name, #namespace, #safe_namespace, #to_ptr, wrap
Instance Method Details
#constructor? ⇒ Boolean
19
20
21
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 19
def constructor?
flags[:is_constructor]
end
|
#flags ⇒ Object
11
12
13
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 11
def flags
@flags ||= Lib.g_function_info_get_flags self
end
|
#getter? ⇒ Boolean
23
24
25
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 23
def getter?
flags[:is_getter]
end
|
#method? ⇒ Boolean
15
16
17
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 15
def method?
flags[:is_method]
end
|
#setter? ⇒ Boolean
27
28
29
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 27
def setter?
flags[:is_setter]
end
|
#symbol ⇒ Object
7
8
9
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 7
def symbol
Lib.g_function_info_get_symbol self
end
|
#throws? ⇒ Boolean
35
36
37
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 35
def throws?
flags[:throws]
end
|
#wraps_vfunc? ⇒ Boolean
31
32
33
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 31
def wraps_vfunc?
flags[:wraps_vfunc]
end
|