Public Class methods
from_native
(val, ctx)
[show source]
# File lib/free-image/types/boolean.rb, line 10 def self.from_native(val, ctx) val == 0 ? false : true end
to_native
(val, ctx)
[show source]
# File lib/free-image/types/boolean.rb, line 6 def self.to_native(val, ctx) val == false ? 0 : 1 end