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.
184 185 186 |
# File 'lib/edl.rb', line 184 def initialize super(/\*\s*FROM CLIP NAME:(\s+)(.+)/) end |
Instance Method Details
#apply(stack, line) ⇒ Object
188 189 190 191 |
# File 'lib/edl.rb', line 188 def apply(stack, line) stack[-1].clip_name = line.scan(@regexp).flatten.pop.strip CommentMatcher.new.apply(stack, line) end |