Class: Koine::TestRunner::Adapters::Custom
- Inherits:
-
BaseRegexp
- Object
- BaseAdapter
- BaseRegexp
- Koine::TestRunner::Adapters::Custom
- Defined in:
- lib/koine/test_runner/adapters/custom.rb
Instance Attribute Summary
Attributes inherited from BaseAdapter
Instance Method Summary collapse
-
#initialize(file_pattern:, command: nil, commands: {}) ⇒ Custom
constructor
A new instance of Custom.
Methods inherited from BaseAdapter
Constructor Details
#initialize(file_pattern:, command: nil, commands: {}) ⇒ Custom
Returns a new instance of Custom.
5 6 7 8 9 10 11 12 13 |
# File 'lib/koine/test_runner/adapters/custom.rb', line 5 def initialize(file_pattern:, command: nil, commands: {}) super(file_pattern: file_pattern) @command = command @commands = {}.tap do |hash| commands.each do |key, value| hash[key.to_sym] = value end end end |