Class: EDL::Matcher

Inherits:
Object
  • Object
show all
Defined in:
lib/edl.rb

Overview

A generic matcher

Defined Under Namespace

Classes: ApplyError

Instance Method Summary collapse

Constructor Details

#initialize(with_regexp) ⇒ 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