Class: GObjectIntrospection::TypeTag

Inherits:
Object
  • Object
show all
Defined in:
lib/gobject-introspection/type-tag.rb

Instance Method Summary collapse

Instance Method Details

#description(type_info) ⇒ Object



28
29
30
31
32
33
34
35
# File 'lib/gobject-introspection/type-tag.rb', line 28

def description(type_info)
  method = "description_#{nick}"
  if respond_to?(method, true)
    __send__(method, type_info)
  else
    nick
  end
end

#try_convert(type_info, value) ⇒ Object



19
20
21
22
23
24
25
26
# File 'lib/gobject-introspection/type-tag.rb', line 19

def try_convert(type_info, value)
  method = "try_convert_#{nick}"
  if respond_to?(method, true)
    __send__(method, type_info, value)
  else
    nil
  end
end