Class: GObjectIntrospection::TypeTag::GHASH
- Inherits:
-
Object
- Object
- GObjectIntrospection::TypeTag::GHASH
- Defined in:
- lib/gobject-introspection/type-tag.rb
Class Method Summary collapse
Class Method Details
.description(type_info) ⇒ Object
168 169 170 171 172 |
# File 'lib/gobject-introspection/type-tag.rb', line 168 def description(type_info) key_type = type_info.get_param_type(0) value_type = type_info.get_param_type(1) "#{super}(#{key_type.description}->#{value_type.description})" end |
.try_convert(type_info, value) ⇒ Object
159 160 161 162 163 164 165 166 |
# File 'lib/gobject-introspection/type-tag.rb', line 159 def try_convert(type_info, value) case value when Hash value else nil end end |