class Exlibris::Aleph::Table::Reader::Matcher::Base
Attributes
regexp[R]
string[R]
Public Class Methods
new(regexp, string)
click to toggle source
# File lib/exlibris/aleph/table/reader/matcher/base.rb, line 9 def initialize(regexp, string) @regexp = regexp @string = string end
Public Instance Methods
match_data()
click to toggle source
# File lib/exlibris/aleph/table/reader/matcher/base.rb, line 14 def match_data @match_data ||= regexp.match(string) end
matched_data()
click to toggle source
# File lib/exlibris/aleph/table/reader/matcher/base.rb, line 18 def matched_data @matched_data ||= match_data.captures end
matches?()
click to toggle source
# File lib/exlibris/aleph/table/reader/matcher/base.rb, line 22 def matches? regexp === string end