Module: JamfRubyExtensions::Object::Predicates

Included in:
Object
Defined in:
lib/jamf/ruby_extensions/object/predicates.rb

Instance Method Summary collapse

Instance Method Details

#j_boolean?Boolean Also known as: j_bool?, jss_boolean?, jss_bool?

is an object an explict true or false?

TODO: globally replace

   `JSS::TRUE_FALSE.include? xxx`
with
   `xxx.j_boolean?`

Returns:

  • (Boolean)


42
43
44
# File 'lib/jamf/ruby_extensions/object/predicates.rb', line 42

def j_boolean?
  [true, false].include? self
end