class Dhall::Util::ArrayOf
Public Class Methods
new(element_validator, min: 0, max: Float::INFINITY)
click to toggle source
Calls superclass method
# File lib/dhall/util.rb, line 36 def initialize(element_validator, min: 0, max: Float::INFINITY) @min = min @max = max super(element_validator) end
Public Instance Methods
===(other)
click to toggle source
Calls superclass method
# File lib/dhall/util.rb, line 42 def ===(other) super && other.length >= @min && other.length <= @max end