Class: Berkshelf::Location
- Inherits:
-
Object
- Object
- Berkshelf::Location
- Defined in:
- lib/berkshelf/location.rb
Class Method Summary collapse
-
.init(dependency, options = {}) ⇒ ~BaseLocation?
Create a new instance of a Location class given dependency and options.
Class Method Details
.init(dependency, options = {}) ⇒ ~BaseLocation?
Create a new instance of a Location class given dependency and options. The type of class is determined by the values in the given options
Hash.
If you do not provide an option with a matching location id, nil
is returned.
21 22 23 24 25 26 27 |
# File 'lib/berkshelf/location.rb', line 21 def init(dependency, = {}) if ( klass = () ) klass.new(dependency, ) else nil end end |