class TextExtractor::Filldown

Public Class Methods

new(*args, **kwargs) click to toggle source
Calls superclass method
# File lib/text_extractor/filldown.rb, line 5
def initialize(*args, **kwargs)
  @filldown_output = kwargs.delete(:output) || false
  super(*args, **kwargs)
end

Public Instance Methods

extraction(match, fill) click to toggle source
Calls superclass method
# File lib/text_extractor/filldown.rb, line 10
def extraction(match, fill)
  fill.merge!(extract_values(match))

  if @filldown_output
    super
  else
    []
  end
end