Class: Umwelt::History::Follow

Inherits:
Abstract::Interactor show all
Defined in:
lib/umwelt/history/follow.rb

Instance Method Summary collapse

Methods inherited from Abstract::Interactor

#prove

Constructor Details

#initialize(reader: Umwelt::Episode::File::Restore, path: '.umwelt') ⇒ Follow

Returns a new instance of Follow.



7
8
9
10
11
12
# File 'lib/umwelt/history/follow.rb', line 7

def initialize(
  reader: Umwelt::Episode::File::Restore,
  path: '.umwelt'
)
  @reader = reader.new(path: path)
end

Instance Method Details

#call(phases) ⇒ Object



14
15
16
# File 'lib/umwelt/history/follow.rb', line 14

def call(phases)
  @episodes = phases.map { |phase| episode(phase) }
end