Class: FlameTimewarpExtractor::X

Inherits:
FlameChannelParser::Extractor
  • Object
show all
Defined in:
lib/flame_timewarp_extractor.rb

Instance Method Summary collapse

Instance Method Details

#find_channel_in(channels, channel_path) ⇒ Object

This one is overridden here since instead of looking for a particular channel we are looking for matches from a list

Raises:

  • (ChannelNotFoundError)


15
16
17
18
19
20
# File 'lib/flame_timewarp_extractor.rb', line 15

def find_channel_in(channels, channel_path)
  # Ignore the passed channels, just override
  detected_channel = channels.find{|c| CHANNELS.include?(c.path) }
  return detected_channel if detected_channel
  raise ChannelNotFoundError, compose_channel_not_found_message(CHANNELS.join(' or '), channels)
end