Class: Frails::ManifestManager

Inherits:
Object
  • Object
show all
Defined in:
lib/frails/manifest_manager.rb

Instance Method Summary collapse

Constructor Details

#initializeManifestManager

Returns a new instance of ManifestManager.



8
9
10
# File 'lib/frails/manifest_manager.rb', line 8

def initialize
  @instances = {}
end

Instance Method Details

#[](path = nil) ⇒ Object



12
13
14
15
# File 'lib/frails/manifest_manager.rb', line 12

def [](path = nil)
  path ||= Frails.manifest_path
  @instances[path] ||= Frails::Manifest.new(path)
end