Date: 2007-12-10 14:34
Sender: Vanja Radovanović
I've solved the issue by adding a new method to the CommandBuilder
class:
def add_command(symbol, *args)
@args << "#{symbol}"
@args += args
end
Usage:
image.combine_options do |command|
command.background "black"
command.add_command("+polaroid")
command.format "png"
end
Works just fine. I think the "def +(value)" is actually
for the same thing, but I couldn't get it to work...
Hope this helps...
P.S. the polaroid usage code is not entirely done, just
a ilustration... |