Class: Mal::CoveringT

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

Instance Method Summary collapse

Methods inherited from OnlyT

#&, #initialize, #|

Constructor Details

This class inherits a constructor from Mal::OnlyT

Instance Method Details

#===(value) ⇒ Object



296
297
298
# File 'lib/mal.rb', line 296

def ===(value)
  @matchable.cover?(value)
end

#inspectObject



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

def inspect; 'CoveredBy(%s)' % @matchable.inspect; end