assignment for how dependency injection works in ruby