Class: ParallelWorkforce::RevisionBuilder::FilesHash

Inherits:
Object
  • Object
show all
Defined in:
lib/parallel_workforce/revision_builder/files_hash.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(files = Dir["#{File.expand_path('.')}/**/*.rb"]) ⇒ FilesHash

Returns a new instance of FilesHash.



6
7
8
# File 'lib/parallel_workforce/revision_builder/files_hash.rb', line 6

def initialize(files=Dir["#{File.expand_path('.')}/**/*.rb"])
  @revision = build_revision(files).freeze
end

Instance Attribute Details

#revisionObject (readonly)

Returns the value of attribute revision.



4
5
6
# File 'lib/parallel_workforce/revision_builder/files_hash.rb', line 4

def revision
  @revision
end