Class: ThatArg
- Inherits:
-
Object
- Object
- ThatArg
- Defined in:
- lib/arg_that/that_arg.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(&blk) ⇒ ThatArg
constructor
A new instance of ThatArg.
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 |