Class: GObjectIntrospection::TypeTag::BOOLEAN
- Inherits:
-
Object
- Object
- GObjectIntrospection::TypeTag::BOOLEAN
- Defined in:
- lib/gobject-introspection/type-tag.rb
Class Method Summary collapse
Class Method Details
.try_convert(type_info, value) ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/gobject-introspection/type-tag.rb', line 28 def try_convert(type_info, value) case value when true, false value when nil false else nil end end |