Module: ObjectTweaks::Extension
- Defined in:
- lib/array-tweaks.rb
Instance Method Summary collapse
Instance Method Details
#not_in?(another_object) ⇒ Boolean
35 36 37 38 39 |
# File 'lib/array-tweaks.rb', line 35 def not_in?(another_object) !another_object.include?(self) rescue NoMethodError raise ArgumentError, "The parameter passed to #not_in? must respond to #include?." end |