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