Class: Mal::MinLengthT
Instance Method Summary collapse
Methods inherited from LengthT
Methods inherited from OnlyT
#&, #initialize, #|
Constructor Details
This class inherits a constructor from Mal::LengthT
Instance Method Details
#===(value) ⇒ Object
201 202 203 204 |
# File 'lib/mal.rb', line 201 def ===(value) return false unless value.respond_to? :length @desired_length >= value.length end |
#inspect ⇒ Object
205 |
# File 'lib/mal.rb', line 205 def inspect; 'OfAtLeastElements(%d)' % @desired_length; end |