Class: CF::Boolean
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 Method Summary collapse
-
#value ⇒ Boolean
(also: #to_ruby)
returns a ruby true/false value.
Methods inherited from Base
check_cftype, #eql?, #equals?, #hash, #initialize, #inspect, #null?, #ptr=, #release, #release_on_gc, #retain, #to_cf, #to_ptr, typecast
Constructor Details
This class inherits a constructor from CF::Base
Instance Method Details
#value ⇒ Boolean Also known as: to_ruby
returns a ruby true/false value
19 20 21 |
# File 'lib/corefoundation/boolean.rb', line 19 def value CF.CFBooleanGetValue(self) != 0 end |