Class: LaMaquina::DependencyMap::Base
- Inherits:
-
Object
- Object
- LaMaquina::DependencyMap::Base
- Defined in:
- lib/la_maquina/dependency_map/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #find(*args) ⇒ Object
-
#initialize(path = nil) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(path = nil) ⇒ Base
Returns a new instance of Base.
4 5 6 7 8 |
# File 'lib/la_maquina/dependency_map/base.rb', line 4 def initialize( path = nil ) if path self.map = YAML.load_file(path).with_indifferent_access end end |
Instance Method Details
#find(*args) ⇒ Object
10 11 12 |
# File 'lib/la_maquina/dependency_map/base.rb', line 10 def find(*args) raise "A dependency map has to implement 'find'" end |