Module: Gemmy::Patches::ArrayPatch::InstanceMethods::Exclude

Defined in:
lib/gemmy/patches/array_patch.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.autotestObject



75
76
77
# File 'lib/gemmy/patches/array_patch.rb', line 75

def self.autotest
  [1].exclude?(2) && ![2].exclude?(2)
end

Instance Method Details

#exclude?(x) ⇒ Boolean

facets the opposite of include

Returns:

  • (Boolean)


72
73
74
# File 'lib/gemmy/patches/array_patch.rb', line 72

def exclude?(x)
  ! include? x
end