Module: Gemmy::Patches::ArrayPatch::InstanceMethods::Exclude
- Defined in:
- lib/gemmy/patches/array_patch.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#exclude?(x) ⇒ Boolean
facets the opposite of include.
Class Method Details
.autotest ⇒ Object
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
72 73 74 |
# File 'lib/gemmy/patches/array_patch.rb', line 72 def exclude?(x) ! include? x end |