class Foo(Base): _tag_fetcher = dependency("tag_fetcher")
class Greeter(zuice.Base): _name = zuice.dependency(Name)
class Greeter(zuice.Base): _name = zuice.dependency(Name) def hello(self): return "Hello {0}".format(self._name)
class Greeter(zuice.Base): _greeting = zuice.dependency(Greeting) _name = zuice.dependency(Name) def hello(self): return "{0} {1}".format(self._greeting, self._name)
class Foo(Base): _tag_fetcher = dependency("tag_fetcher") _blog_post_fetcher = dependency('post_fetcher')
class Child(Parent): _fetcher = dependency('post_fetcher')
class Parent(Base): _fetcher = dependency('tag_fetcher')
class View(Base): _tag_fetcher = dependency("tag_fetcher")