Class: Schienenzeppelin::Dependencies
- Inherits:
-
Object
- Object
- Schienenzeppelin::Dependencies
- Defined in:
- lib/schienenzeppelin/dependencies.rb
Instance Method Summary collapse
-
#initialize(addon, context) ⇒ Dependencies
constructor
A new instance of Dependencies.
- #satisfied? ⇒ Boolean
Constructor Details
#initialize(addon, context) ⇒ Dependencies
Returns a new instance of Dependencies.
5 6 7 8 9 |
# File 'lib/schienenzeppelin/dependencies.rb', line 5 def initialize(addon, context) @addon = addon @context = context = context. end |
Instance Method Details
#satisfied? ⇒ Boolean
11 12 13 14 15 16 17 |
# File 'lib/schienenzeppelin/dependencies.rb', line 11 def satisfied? @addon.dependencies.each do |dependency| return false unless dependencies_satisfied?(dependency) end true end |