Class: CF::Boolean

Inherits:
Base
  • Object
show all
Defined in:
lib/corefoundation/boolean.rb

Overview

Wrapper for CFBooleanRef. Typically you use the CF::Boolean::TRUE and CF::Boolean::FALSE constants

Constant Summary collapse

TRUE =

A constant containing kCFBooleanTrue

new(CF.kCFBooleanTrue)
FALSE =

A constant containing kCFBooleanFalse

new(CF.kCFBooleanFalse)

Instance Attribute Summary

Attributes inherited from Base

#ptr

Instance Method Summary collapse

Methods inherited from Base

check_cftype, #eql?, #equals?, finalize, #hash, #initialize, #null?, #to_cf, typecast

Methods included from Memory

#inspect, #release, #retain, #to_ptr

Methods included from Register

included, #register_type

Constructor Details

This class inherits a constructor from CF::Base

Instance Method Details

#valueBoolean Also known as: to_ruby

returns a ruby true/false value

Returns:



19
20
21
# File 'lib/corefoundation/boolean.rb', line 19

def value
  CF.CFBooleanGetValue(self) != 0
end