Class: Object

Inherits:
BasicObject
Includes:
JamfRubyExtensions::Object::Predicates
Defined in:
lib/jss/ruby_extensions/object.rb,
lib/jamf/ruby_extensions/object.rb

Overview

include the modules loaded above

Instance Method Summary collapse

Instance Method Details

#j_boolean?Boolean Also known as: j_bool? Originally defined in module JamfRubyExtensions::Object::Predicates

is an object an explict true or false?

TODO: globally replace

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

Returns:

  • (Boolean)

#jss_boolean?Boolean Also known as: jss_bool?

is an object an explict true or false?

TODO: globally replace

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

Returns:

  • (Boolean)

14
15
16
# File 'lib/jss/ruby_extensions/object.rb', line 14

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