class Pod::Generate::Configuration::ArrayOf
@visibility private
Implements `===` to do type checking against an array.
Attributes
types[R]
Public Class Methods
new(*types)
click to toggle source
# File lib/cocoapods/generate/configuration.rb, line 68 def initialize(*types) @types = types end
Public Instance Methods
===(other)
click to toggle source
@return [Boolean] whether the given object is an array with elements all of the given types
# File lib/cocoapods/generate/configuration.rb, line 78 def ===(other) other.is_a?(Array) && other.all? { |o| types.any? { |t| t === o } } end
to_s()
click to toggle source
# File lib/cocoapods/generate/configuration.rb, line 72 def to_s "Array<#{types.join('|')}>" end