Class: Whisper::EntrySet

Inherits:
Object
  • Object
show all
Includes:
Dependency, Loggy
Defined in:
lib/whisper/entry_set.rb

Overview

the set of all entries

Instance Method Summary collapse

Methods included from Dependency

#content, #dependency_init, #refresh!, #timestamp

Constructor Details

#initialize(dir) ⇒ EntrySet

Returns a new instance of EntrySet.



12
13
14
15
16
# File 'lib/whisper/entry_set.rb', line 12

def initialize dir
  @dirset = DirSet.new dir, Entry
  @entries = []
  dependency_init
end

Instance Method Details

#dependenciesObject



18
# File 'lib/whisper/entry_set.rb', line 18

def dependencies; [@dirset] + @entries end

#sizeObject



25
# File 'lib/whisper/entry_set.rb', line 25

def size; entries.size end