Class: Washcloth::Filters::ReplaceWithBlockOutcome
- Inherits:
-
Object
- Object
- Washcloth::Filters::ReplaceWithBlockOutcome
- Defined in:
- lib/washcloth.rb
Instance Method Summary collapse
- #[](value) ⇒ Object
-
#initialize(block) ⇒ ReplaceWithBlockOutcome
constructor
A new instance of ReplaceWithBlockOutcome.
Constructor Details
#initialize(block) ⇒ ReplaceWithBlockOutcome
Returns a new instance of ReplaceWithBlockOutcome.
127 128 129 |
# File 'lib/washcloth.rb', line 127 def initialize(block) @block = block end |
Instance Method Details
#[](value) ⇒ Object
131 132 133 |
# File 'lib/washcloth.rb', line 131 def [](value) @block.call(value) end |