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.
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 |