class FreeImage::Boolean

  1. lib/free-image/types/boolean.rb
Superclass: Object

Methods

Public Class

  1. from_native
  2. to_native

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