Class: ThatArg

Inherits:
Object
  • Object
show all
Defined in:
lib/arg_that/that_arg.rb

Instance Method Summary collapse

Constructor Details

#initialize(&blk) ⇒ ThatArg

Returns a new instance of ThatArg.



2
3
4
# File 'lib/arg_that/that_arg.rb', line 2

def initialize(&blk)
  @blk = blk
end

Instance Method Details

#==(other) ⇒ Object



6
7
8
# File 'lib/arg_that/that_arg.rb', line 6

def ==(other)
  @blk.call(other)
end