Class: EDL::EffectMatcher

Inherits:
Matcher
  • Object
show all
Defined in:
lib/edl.rb

Instance Method Summary collapse

Methods inherited from Matcher

#matches?

Constructor Details

#initializeEffectMatcher

Returns a new instance of EffectMatcher.



197
198
199
# File 'lib/edl.rb', line 197

def initialize
  super(/^\*\s*EFFECT NAME:(\s+)(.+)/)
end

Instance Method Details

#apply(stack, line) ⇒ Object



201
202
203
204
# File 'lib/edl.rb', line 201

def apply(stack, line)
  stack[-1].transition.effect = line.scan(@regexp).flatten.pop.strip
  CommentMatcher.new.apply(stack, line)
end