Class: YOLOBackup::ExcludeSet
- Inherits:
-
Object
- Object
- YOLOBackup::ExcludeSet
- Defined in:
- lib/yolo_backup/exclude_set.rb
Instance Attribute Summary collapse
-
#excludes ⇒ Object
readonly
Returns the value of attribute excludes.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, excludes) ⇒ ExcludeSet
constructor
A new instance of ExcludeSet.
- #to_s ⇒ Object
Constructor Details
#initialize(name, excludes) ⇒ ExcludeSet
Returns a new instance of ExcludeSet.
5 6 7 8 |
# File 'lib/yolo_backup/exclude_set.rb', line 5 def initialize(name, excludes) @name = name @excludes = excludes end |
Instance Attribute Details
#excludes ⇒ Object (readonly)
Returns the value of attribute excludes.
3 4 5 |
# File 'lib/yolo_backup/exclude_set.rb', line 3 def excludes @excludes end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/yolo_backup/exclude_set.rb', line 3 def name @name end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/yolo_backup/exclude_set.rb', line 10 def to_s "#{name} (#{excludes.join(', ')})" end |