Class: Object

Inherits:
BasicObject
Defined in:
lib/jss/ruby_extensions/object.rb

Overview

Extensions to Ruby Objects for use within the JSS module

Instance Method Summary collapse

Instance Method Details

#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