Class: Washcloth::Filters::ReplaceWithBlockOutcome

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

Instance Method Summary collapse

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