Class: Mal::MinLengthT

Inherits:
LengthT show all
Defined in:
lib/mal.rb

Instance Method Summary collapse

Methods inherited from LengthT

#initialize

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

#inspectObject



205
# File 'lib/mal.rb', line 205

def inspect; 'OfAtLeastElements(%d)' % @desired_length; end