Array#include_all? & Array#include_any? methods missing from basic Ruby Array API.
ArrayIncludeMethods alternatives and similar gems
Based on the "Core Extensions" category.
Alternatively, view ArrayIncludeMethods alternatives based on common mentions on social networks and blogs.
8.2 3.3 L4 ArrayIncludeMethods VS HashieHashie is a collection of classes and mixins that make Ruby hashes more powerful.
7.2 0.0 L5 ArrayIncludeMethods VS HamsterEfficient, Immutable, Thread-Safe Collection classes for Ruby
3.7 4.0 L5 ArrayIncludeMethods VS Hanami::UtilsRuby core extentions and class utilities for Hanami
3.2 0.0 L5 ArrayIncludeMethods VS FastAttributesFastAttributes adds attributes with their types to the class
2.6 0.1 L5 ArrayIncludeMethods VS Finishing MovesSmall, focused, awesome methods added to core Ruby classes. Home of the endlessly useful nil_chain.
Utiltiy methods extracted from SugarCRM Ruby projects
Delegate ActiveRecord model attributes and associations.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ArrayIncludeMethods or a related project?
ArrayIncludeMethods 1.0.3 - Ruby Refinement
Array#include_any? methods missing from basic Ruby
Include the following in Gemfile:
gem 'array_include_methods', '~> 1.0.3'
gem install array_include_methods -v1.0.3
Add the following line to your application if you are not requiring all gems via Bundler (e.g.
To activate the
ArrayIncludeMethods Ruby Refinement for the
Array class, add the following line to every Ruby file that needs it:
Now, you have
#include_any? methods on
[1, 2, 3, 4].include_all?([2, 4]) # returns true [1, 2, 3, 4].include_all?([2, 4, 5]) # returns false [1, 2, 3, 4].include_all?() # returns true [1, 2, 3, 4].include_all?(nil) # returns false
[1, 2, 3, 4].include_any?([2, 4, 5]) # returns true [1, 2, 3, 4].include_any?([6, 7]) # returns false [1, 2, 3, 4].include_any?() # returns true [1, 2, 3, 4].include_any?(nil) # returns false
This gem degrades gracefully to monkey-patching in Opal Ruby and provides a
using method shim so consumer code does not have to change if it used gems that rely on the Ruby refinement
Contributing to array_include_methods
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
- Fork the project.
- Start a feature/bugfix branch.
- Commit and push until you are happy with your contribution.
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
Copyright (c) 2020 Andy Maleh. See LICENSE.txt for further details.
*Note that all licence references and agreements mentioned in the ArrayIncludeMethods README section above are relevant to that project's source code only.