Curry-like behavior in Ruby