Class: Frizz::Local::File
- Inherits:
-
Object
- Object
- Frizz::Local::File
- Defined in:
- lib/frizz/local.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #checksum ⇒ Object
-
#initialize(path, key) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(path, key) ⇒ File
Returns a new instance of File.
37 38 39 40 |
# File 'lib/frizz/local.rb', line 37 def initialize(path, key) @path = path @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
35 36 37 |
# File 'lib/frizz/local.rb', line 35 def key @key end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
35 36 37 |
# File 'lib/frizz/local.rb', line 35 def path @path end |
Instance Method Details
#checksum ⇒ Object
42 43 44 |
# File 'lib/frizz/local.rb', line 42 def checksum Digest::MD5.file(path) end |