Class: BSFlow::DropArgs
- Inherits:
-
Object
- Object
- BSFlow::DropArgs
- Defined in:
- lib/bsflow/drop_args.rb
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(proc:) ⇒ DropArgs
constructor
A new instance of DropArgs.
Constructor Details
#initialize(proc:) ⇒ DropArgs
Returns a new instance of DropArgs.
3 4 5 |
# File 'lib/bsflow/drop_args.rb', line 3 def initialize(proc:) @proc = proc end |
Instance Method Details
#call(*args) ⇒ Object
7 8 9 |
# File 'lib/bsflow/drop_args.rb', line 7 def call(*args) @proc.call end |