Class: EDL::Matcher
- Inherits:
-
Object
- Object
- EDL::Matcher
- Defined in:
- lib/edl.rb
Overview
A generic matcher
Direct Known Subclasses
CommentMatcher, EffectMatcher, EventMatcher, FallbackMatcher, NameMatcher, TimewarpMatcher
Defined Under Namespace
Classes: ApplyError
Instance Method Summary collapse
- #apply(_stack, line) ⇒ Object
-
#initialize(with_regexp) ⇒ Matcher
constructor
A new instance of Matcher.
- #matches?(line) ⇒ Boolean
Constructor Details
#initialize(with_regexp) ⇒ Matcher
Returns a new instance of Matcher.
145 146 147 |
# File 'lib/edl.rb', line 145 def initialize(with_regexp) @regexp = with_regexp end |
Instance Method Details
#apply(_stack, line) ⇒ Object
153 154 155 |
# File 'lib/edl.rb', line 153 def apply(_stack, line) STDERR.puts "Skipping #{line}" end |
#matches?(line) ⇒ Boolean
149 150 151 |
# File 'lib/edl.rb', line 149 def matches?(line) line =~ @regexp end |