Class: EDL::NameMatcher
Overview
Clip name matcher
Instance Method Summary collapse
- #apply(stack, line) ⇒ Object
-
#initialize ⇒ NameMatcher
constructor
A new instance of NameMatcher.
Methods inherited from Matcher
Constructor Details
#initialize ⇒ NameMatcher
Returns a new instance of NameMatcher.
186 187 188 |
# File 'lib/edl.rb', line 186 def initialize super(/^\*\s*FROM CLIP NAME:(\s+)(.+)/) end |
Instance Method Details
#apply(stack, line) ⇒ Object
190 191 192 193 |
# File 'lib/edl.rb', line 190 def apply(stack, line) stack[-1].clip_name = line.scan(@regexp).flatten.pop.strip CommentMatcher.new.apply(stack, line) end |