Class: Array
Instance Method Summary collapse
Instance Method Details
#include_all?(values) ⇒ Boolean
3 4 5 |
# File 'lib/r_kit/utility/array_extend.rb', line 3 def include_all? values (self & Array(values)).size == Array(values).size end |
#include_one?(values) ⇒ Boolean
7 8 9 |
# File 'lib/r_kit/utility/array_extend.rb', line 7 def include_one? values (self & Array(values)).size > 0 end |
#rotate_left ⇒ Object
12 13 14 |
# File 'lib/r_kit/utility/array_extend.rb', line 12 def rotate_left push shift end |