Simple dependency injection for Ruby objects