Class: BackupOrganizer::Pattern
- Inherits:
-
Object
- Object
- BackupOrganizer::Pattern
- Defined in:
- lib/backup_organizer/pattern.rb
Instance Method Summary collapse
- #directories ⇒ Object
-
#initialize {|_self| ... } ⇒ Pattern
constructor
A new instance of Pattern.
- #rules ⇒ Object
- #stored_in(directory) ⇒ Object
Constructor Details
#initialize {|_self| ... } ⇒ Pattern
Returns a new instance of Pattern.
3 4 5 |
# File 'lib/backup_organizer/pattern.rb', line 3 def initialize yield self end |
Instance Method Details
#directories ⇒ Object
13 14 15 |
# File 'lib/backup_organizer/pattern.rb', line 13 def directories rules.map &:directory end |
#rules ⇒ Object
17 18 19 |
# File 'lib/backup_organizer/pattern.rb', line 17 def rules @rules ||= [] end |