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
-
#j_boolean? ⇒ Boolean
(also: #j_bool?)
included
from JamfRubyExtensions::Object::Predicates
is an object an explict true or false?.
-
#jss_boolean? ⇒ Boolean
(also: #jss_bool?)
is an object an explict true or false?.
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?`
#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?`
14 15 16 |
# File 'lib/jss/ruby_extensions/object.rb', line 14 def jss_boolean? [true, false].include? self end |