Class: LaMaquina::DependencyMap::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/la_maquina/dependency_map/base.rb

Direct Known Subclasses

ConstantMap, YamlMap

Instance Method Summary collapse

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