Module: Trackman::Components::Hashable
- Included in:
- Assets::BundledAsset
- Defined in:
- lib/trackman/components/hashable.rb
Instance Method Summary collapse
Instance Method Details
#data ⇒ Object
6 7 8 |
# File 'lib/trackman/components/hashable.rb', line 6 def data @data ||= read_file(path) end |
#file_hash ⇒ Object
10 11 12 |
# File 'lib/trackman/components/hashable.rb', line 10 def file_hash @file_hash ||= (data.nil? ? "" : Digest::MD5.hexdigest(data)) end |