Dependency injection for Ruby