README.md in spank-0.0.1393558686 vs README.md in spank-1.0.1420314444

- old
+ new

@@ -23,11 +23,11 @@ Register a single component and resolve it. ```ruby - container = Container.new + container = Spank::Container.new container.register(:item) do |container| "ITEM" end item = container.resolve(:item) @@ -35,22 +35,22 @@ Register multiple items, and resolve them. ```ruby - container = Container.new + container = Spank::Container.new container.register(:pants) { jeans } container.register(:pants) { dress_pants } pants = container.resolve_all(:pants) ``` Register a singleton. ```ruby - container = Container.new + container = Spank::Container.new container.register(:singleton) { fake }.as_singleton single_instance = container.resolve(:singleton) same_instance = container.resolve(:singleton) ``` @@ -62,11 +62,11 @@ class Child def initialize(mom,dad) end end - container = Container.new + container = Spank::Container.new container.register(:mom) { mom } container.register(:dad) { dad } child = sut.build(Child) ``` @@ -84,21 +84,21 @@ class Command def run(input) end end - container = Container.new + container = Spank::Container.new container.register(:command) { Command.new }.intercept(:run).with(Interceptor.new) proxy = container.resolve(:command) proxy.run("hi") ``` [Static gateway](http://codebetter.com/jpboodhoo/2007/10/15/the-static-gateway-pattern/) to connect to the container. ```ruby - container = Container.new + container = Spank::Container.new Spank::IOC.bind_to(container) item = Spank::IOC.resolve(:item) ```