class Hashape::Specifiers::Many

Requires that the value be an enumerable, where each item matches the given type spec.

Public Instance Methods

===(v) click to toggle source
# File lib/hashape.rb, line 56
def ===(v)
  v.is_a?(Enumerable) && v.all? { |i| self.spec === i }
end