I have the following method:
def item(*args, &block)
options = args.extract_options!
options.reverse_update({
brand: false,
icon: false,
})
# Do some stuff
end
And this method:
def brand(*args, &block)
options = args.extract_options!
options[:brand] = true
self.item(???, &block) # How does this call have to look?
end
The 2nd last line is of interest. I want to call the item with exact the same parameters like the brand method was called (except I added another parameter, brand).
I’d write: