published dependency injection in ruby