Class: DumpCleaner::Cleanup::CleaningSteps::SelectDataByPattern
- Defined in:
- lib/dump_cleaner/cleanup/cleaning_steps/select_data_by_pattern.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#crc32, #initialize, #raise_params_error
Constructor Details
This class inherits a constructor from DumpCleaner::Cleanup::CleaningSteps::Base
Instance Method Details
#run(patterns:, default_key: nil) ⇒ Object
7 8 9 10 |
# File 'lib/dump_cleaner/cleanup/cleaning_steps/select_data_by_pattern.rb', line 7 def run(patterns:, default_key: nil) step_context.cleanup_data = step_context.cleanup_data[match_key(patterns) || default_key] step_context end |