module GObjectIntrospection::TypeTag::FloatTypeTag
Public Instance Methods
try_convert(type_info, value)
click to toggle source
# File lib/gobject-introspection/type-tag.rb, line 62 def try_convert(type_info, value) if value.is_a?(Float) value elsif value.respond_to?(:to_f) # TODO: Should we stop this? value.to_f else nil end end