module GObjectIntrospection::TypeTag::GHASH

Public Class Methods

description(type_info) click to toggle source
# 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) click to toggle source
# File lib/gobject-introspection/type-tag.rb, line 159
def try_convert(type_info, value)
  case value
  when Hash
    value
  else
    nil
  end
end