| Dependency Injection: Vital or Irrelevant? | [ Prev | Home | Next ] |
If the Container class (not instance) is ever asked for a service block, it will immediately report a unknown service error.
def self.service_block(name)
fail(MissingServiceError, "Unknown Service '#{name}'")
end
| O'REILLY® OSCON 2005 | Copyright © 2005 by Jim Weirich (Some Rights Reserved) |