'Is it possible to somehow improve the syntax towards nested methods?

I have this method:

def prepare
  lambda do |zone, data|
    # Some code
  end
end

It is used like this:

prepare.call(:box, {})

Is there any way to get rid of .call? Ideally, I would like this method to be called like this:

prepare.box({})


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source