railsdog/deface — pull request #13 by radar (2011-11-06 12:34:04+00:00)
Title: Allow a block to be passed to Override.new

Having a set of hash arguments is a good idea where the hash arguments are short and sweet. However, the replacement text argument may be a bit long and unsightly within the hash syntax currently provided by Deface.

Therefore I propose that `Deface::Override.new` should be able to take a block which contains code that will define the content for this. See my commit for a example.

You could also have advanced logic in this text too, without it getting too messy:

Deface::Override.new(options) do
if some_condition
"some text"
else
"other text"
end
end