Sha256: 82d4781d9a53ae9ae8f275e6ade08ba908c01189311051ad02d93d90c5c8073a
Contents?: true
Size: 431 Bytes
Versions: 32
Compression:
Stored size: 431 Bytes
Contents
class Array # @param [#to_s, Array<#to_s>] tags # # @return [Bool] # `true` if `self` contains any of the `tags` when objects of both `self` # and `tags` are converted to `String`. def includes_tags?( tags ) return false if !tags tags = [tags].flatten.compact.map( &:to_s ) return false if tags.empty? (self.flatten.compact.map( &:to_s ) & tags).any? end end
Version data entries
32 entries across 32 versions & 1 rubygems