Class: Awsome::Executor
- Inherits:
-
Object
- Object
- Awsome::Executor
- Defined in:
- lib/awsome/executor.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(matches, requirements) ⇒ Executor
constructor
A new instance of Executor.
Constructor Details
#initialize(matches, requirements) ⇒ Executor
Returns a new instance of Executor.
3 4 5 6 |
# File 'lib/awsome/executor.rb', line 3 def initialize(matches, requirements) @matches = matches @requirements = requirements end |
Instance Method Details
#execute ⇒ Object
8 9 10 |
# File 'lib/awsome/executor.rb', line 8 def execute @matches.each { |s, m| execute_match(s, m) } end |