Module: Bool
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/xlib/types.rb
Overview
Copyleft meh. [meh.paranoid.pk | [email protected]] Copyright © 2014, Christopher Aue <[email protected]>
This file is part of the ruby xlib gem. It is subject to the license terms in the LICENSE file found in the top-level directory of this distribution and at github.com/christopheraue/ruby-xlib.
Class Method Summary collapse
Class Method Details
.from_native(value, ctx) ⇒ Object
19 20 21 |
# File 'lib/xlib/types.rb', line 19 def self.from_native (value, ctx) !value.zero? end |
.to_native(value, ctx) ⇒ Object
15 16 17 |
# File 'lib/xlib/types.rb', line 15 def self.to_native (value, ctx) value ? 1 : 0 end |