lib/line_filter.rb
def match(source)
      source.scan(@pattern) do |matches|
        return @block.call(matches)
      end
      return nil
    end
# Called to determine if this filter matches a line.   If it
# does, returns the result from the block defined with
# {CommandDefinition#add_filter}.
# @return [LineFilterResult] or nil if no match occurred
Called to determine if this filter matches a line.   If it
does, returns the result from the block defined with
{CommandDefinition#add_filter}.
Called to determine if this filter matches a line . If it does returns the result from the block defined with { CommandDefinition#add_filter } .
def match(source)
      source.scan(@pattern) do |matches|
        return @block.call(matches)
      end
      return nil
    end
def match ( source ) source . scan ( @pattern ) do | matches | return @block . call ( matches ) end return nil end
Called to determine if this filter matches a line.
Called to determine if this filter matches a line .
or nil if no match occurred
or nil if no match occurred
LineFilterResult
source