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.



195
196
197
# File 'lib/edl.rb', line 195

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

Instance Method Details

#apply(stack, line) ⇒ Object



199
200
201
202
# File 'lib/edl.rb', line 199

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