Class: FlameTimewarpExtractor::X
- Inherits:
-
FlameChannelParser::Extractor
- Object
- FlameChannelParser::Extractor
- FlameTimewarpExtractor::X
- Defined in:
- lib/flame_timewarp_extractor.rb
Instance Method Summary collapse
-
#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.
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
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, (CHANNELS.join(' or '), channels) end |