class Kiba::Uncommon::Transforms::RegexMatcher
Attributes
field[R]
regex[R]
Public Class Methods
new(field, regex)
click to toggle source
# File lib/kiba/uncommon/transforms/regex_matcher.rb, line 14 def initialize(field, regex) @field = field @regex = regex end
Public Instance Methods
process(row)
click to toggle source
# File lib/kiba/uncommon/transforms/regex_matcher.rb, line 20 def process(row) (regex =~ row.fetch(field)) ? row : nil end