Class: ParallelWorkforce::RevisionBuilder::FilesHash
- Inherits:
-
Object
- Object
- ParallelWorkforce::RevisionBuilder::FilesHash
- Defined in:
- lib/parallel_workforce/revision_builder/files_hash.rb
Instance Attribute Summary collapse
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
Instance Method Summary collapse
-
#initialize(files = Dir["#{File.expand_path('.')}/**/*.rb"]) ⇒ FilesHash
constructor
A new instance of FilesHash.
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.('.')}/**/*.rb"]) @revision = build_revision(files).freeze end |
Instance Attribute Details
#revision ⇒ Object (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 |