Module: CleanUp::Conditions
- Defined in:
- lib/clean_up/conditions.rb,
lib/clean_up/conditions/name.rb,
lib/clean_up/conditions/size.rb,
lib/clean_up/conditions/pattern.rb,
lib/clean_up/conditions/contains.rb,
lib/clean_up/conditions/extension.rb
Defined Under Namespace
Classes: Contains, Extension, Name, Pattern, Size
Constant Summary collapse
- TYPES_CONDITIONS =
TODO: created_at condition
{ file: %w(name extension pattern size), directory: %w(contains name pattern) }.freeze
Class Method Summary collapse
Class Method Details
.build_for_directory(options) ⇒ Object
20 21 22 |
# File 'lib/clean_up/conditions.rb', line 20 def build_for_directory() build_by_type(:directory, ) end |
.build_for_file(options) ⇒ Object
16 17 18 |
# File 'lib/clean_up/conditions.rb', line 16 def build_for_file() build_by_type(:file, ) end |