Class: Mal::SatisfyingT

Inherits:
OnlyT
  • Object
show all
Defined in:
lib/mal.rb

Instance Method Summary collapse

Methods inherited from OnlyT

#&, #===, #|

Constructor Details

#initialize(&blk) ⇒ SatisfyingT

Returns a new instance of SatisfyingT.



282
283
284
# File 'lib/mal.rb', line 282

def initialize(&blk)
  super(blk.to_proc) # Use an OnlyT since Proc objects support ===
end

Instance Method Details

#inspectObject



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

def inspect; 'Satisfying(&blk)'; end