class Fantassh::Entries

Public Class Methods

new(entries_file: EntriesFile.new, excluded_entries_file: ExcludedEntriesFile.new) click to toggle source
# File lib/fantassh/entries.rb, line 6
def initialize(entries_file: EntriesFile.new, excluded_entries_file: ExcludedEntriesFile.new)
  @entries_file = entries_file
  @excluded_entries_file = excluded_entries_file

  init_file_structure
end

Public Instance Methods

add(entries) click to toggle source
# File lib/fantassh/entries.rb, line 13
def add(entries)
  @entries_file.add(entries)
end
all() click to toggle source
# File lib/fantassh/entries.rb, line 17
def all
  @entries_file.all - @excluded_entries_file.all
end
exclude(entries) click to toggle source
# File lib/fantassh/entries.rb, line 21
def exclude(entries)
  @excluded_entries_file.add(entries)
end
init_file_structure() click to toggle source
# File lib/fantassh/entries.rb, line 25
def init_file_structure
  @entries_file.init_file_structure
  @excluded_entries_file.init_file_structure
end