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
170 171 172 173 174 |
# File 'lib/gobject-introspection/type-tag.rb', line 170 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
161 162 163 164 165 166 167 168 |
# File 'lib/gobject-introspection/type-tag.rb', line 161 def try_convert(type_info, value) case value when Hash value else nil end end |