Method: Bake::Context#initialize
- Defined in:
- lib/bake/context.rb
#initialize(registry, root = nil) ⇒ Context
Initialize the context with the specified registry.
64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/bake/context.rb', line 64 def initialize(registry, root = nil) @registry = registry @root = root @instances = Hash.new do |hash, key| hash[key] = instance_for(key) end @recipes = Hash.new do |hash, key| hash[key] = recipe_for(key) end end |