Class: Cadence::ExecutableLookup
- Inherits:
-
Object
- Object
- Cadence::ExecutableLookup
- Defined in:
- lib/cadence/executable_lookup.rb
Instance Method Summary collapse
- #add(name, executable) ⇒ Object
- #find(name) ⇒ Object
-
#initialize ⇒ ExecutableLookup
constructor
A new instance of ExecutableLookup.
Constructor Details
#initialize ⇒ ExecutableLookup
Returns a new instance of ExecutableLookup.
9 10 11 |
# File 'lib/cadence/executable_lookup.rb', line 9 def initialize @executables = {} end |
Instance Method Details
#add(name, executable) ⇒ Object
13 14 15 |
# File 'lib/cadence/executable_lookup.rb', line 13 def add(name, executable) executables[name] = executable end |
#find(name) ⇒ Object
17 18 19 |
# File 'lib/cadence/executable_lookup.rb', line 17 def find(name) executables[name] end |