Class: Whisper::CommentSet

Inherits:
Object
  • Object
show all
Includes:
Dependency, Loggy
Defined in:
lib/whisper/comment_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) ⇒ CommentSet

Returns a new instance of CommentSet.



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

def initialize dir
  @dirset = DirSet.new dir, Comment
  dependency_init
end

Instance Method Details

#dependenciesObject



17
# File 'lib/whisper/comment_set.rb', line 17

def dependencies; [@dirset] end

#sizeObject



24
# File 'lib/whisper/comment_set.rb', line 24

def size; comments.size end