A small abstraction for encapsulating non-trivial business logic in Ruby applications