Class: Temporal::ExecutableLookup

Inherits:
Object
  • Object
show all
Defined in:
lib/temporal/executable_lookup.rb

Instance Method Summary collapse

Constructor Details

#initializeExecutableLookup

Returns a new instance of ExecutableLookup.



9
10
11
# File 'lib/temporal/executable_lookup.rb', line 9

def initialize
  @executables = {}
end

Instance Method Details

#add(name, executable) ⇒ Object



13
14
15
# File 'lib/temporal/executable_lookup.rb', line 13

def add(name, executable)
  executables[name] = executable
end

#find(name) ⇒ Object



17
18
19
# File 'lib/temporal/executable_lookup.rb', line 17

def find(name)
  executables[name]
end