Method: Expire::Backup#initialize

Defined in:
lib/expire/backup.rb

#initialize(time:, pathname:) ⇒ Backup

Returns a new instance of Backup.



8
9
10
11
12
13
14
15
# File 'lib/expire/backup.rb', line 8

def initialize(time:, pathname:)
  @time = time
  @pathname = pathname

  # @reasons_to_keep is a Set so a reason can added multiple times
  # but appears only once
  @reasons_to_keep = Set.new
end