Class: GirFFI::UnintrospectableBoxedInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/gir_ffi/unintrospectable_boxed_info.rb

Overview

Represents a boxed type not found in the GIR, conforming, as needed, to the interface of GObjectIntrospection::IUnionInfo and GObjectIntrospection::IStructInfo.

Constant Summary collapse

DEFAULT_BOXED_NAMESPACE =
"GLib"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gtype) ⇒ UnintrospectableBoxedInfo

Returns a new instance of UnintrospectableBoxedInfo.



11
12
13
# File 'lib/gir_ffi/unintrospectable_boxed_info.rb', line 11

def initialize(gtype)
  @g_type = gtype
end

Instance Attribute Details

#g_typeObject (readonly)

Returns the value of attribute g_type.



9
10
11
# File 'lib/gir_ffi/unintrospectable_boxed_info.rb', line 9

def g_type
  @g_type
end

Instance Method Details

#fieldsObject



29
30
31
# File 'lib/gir_ffi/unintrospectable_boxed_info.rb', line 29

def fields
  []
end

#info_typeObject



15
16
17
# File 'lib/gir_ffi/unintrospectable_boxed_info.rb', line 15

def info_type
  :unintrospectable_boxed
end

#namespaceObject



25
26
27
# File 'lib/gir_ffi/unintrospectable_boxed_info.rb', line 25

def namespace
  DEFAULT_BOXED_NAMESPACE
end

#safe_nameObject



19
20
21
# File 'lib/gir_ffi/unintrospectable_boxed_info.rb', line 19

def safe_name
  GObject.type_name g_type
end