Class: Awsome::Executor

Inherits:
Object
  • Object
show all
Defined in:
lib/awsome/executor.rb

Instance Method Summary collapse

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

#executeObject



8
9
10
# File 'lib/awsome/executor.rb', line 8

def execute
  @matches.each { |s, m| execute_match(s, m) }
end