README.md in smart_container-0.5.0 vs README.md in smart_container-0.6.0
- old
+ new
@@ -72,13 +72,13 @@
- runtime-level dependency/namespace registration:
```ruby
container.namespace(:api) do
- register(:provider) { GoogleProvider }
+ register(:provider) { GoogleProvider } # without memoization
end
-container.register('game_api') { 'overwatch' }
+container.register('game_api', memoize: true) { 'overwatch' } # with memoization
container['api.provider'] # => GoogleProvider
container['game_api'] # => 'overwatch'
```