Class: EDL::EffectMatcher
Instance Method Summary collapse
- #apply(stack, line) ⇒ Object
-
#initialize ⇒ EffectMatcher
constructor
A new instance of EffectMatcher.
Methods inherited from Matcher
Constructor Details
#initialize ⇒ EffectMatcher
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 |