Class: Array
Instance Method Summary collapse
-
#includes_tags?(tags) ⇒ Bool
‘true` if `self` contains any of the `tags` when objects of both `self` and `tags` are converted to `String`.
Instance Method Details
#includes_tags?(tags) ⇒ Bool
Returns ‘true` if `self` contains any of the `tags` when objects of both `self` and `tags` are converted to `String`.
8 9 10 11 12 13 14 15 |
# File 'lib/cuboid/ruby/array.rb', line 8 def ( ) return false if ! = [].flatten.compact.map( &:to_s ) return false if .empty? (self.flatten.compact.map( &:to_s ) & ).any? end |