Method: Lifer::Entry#initialize
- Defined in:
- lib/lifer/entry.rb
#initialize(file:, collection:) ⇒ Lifer::Entry
When a new entry is initialized we expect the file to already exist, and we expect to know which ‘Lifer::Collection` it belongs to.
122 123 124 125 |
# File 'lib/lifer/entry.rb', line 122 def initialize(file:, collection:) @file = Pathname file @collection = collection end |