Class: Schienenzeppelin::Dependencies

Inherits:
Object
  • Object
show all
Defined in:
lib/schienenzeppelin/dependencies.rb

Instance Method Summary collapse

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
  @options = context.options
end

Instance Method Details

#satisfied?Boolean

Returns:

  • (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