Class: DumpCleaner::Cleanup::CleaningSteps::SelectDataByBytesize
- Defined in:
- lib/dump_cleaner/cleanup/cleaning_steps/select_data_by_bytesize.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 ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/dump_cleaner/cleanup/cleaning_steps/select_data_by_bytesize.rb', line 7 def run return step_context if !cleanup_data || cleanup_data.empty? step_context.cleanup_data = cleanup_data["#{current_value.length}-#{current_value.bytesize}"] || cleanup_data["#{current_value.bytesize}-#{current_value.bytesize}"] # used when current_value is accented but data isn't step_context end |