Class: Glark::MatchList

Inherits:
Object
  • Object
show all
Defined in:
lib/glark/output/match_list.rb

Overview

not yet supported; will be matches stored instead of written to stdout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, show_file_names) ⇒ MatchList

Returns a new instance of MatchList.



10
11
12
13
# File 'lib/glark/output/match_list.rb', line 10

def initialize file, show_file_names 
  super
  @matches = Array.new
end

Instance Attribute Details

#matchesObject (readonly)

Returns the value of attribute matches.



8
9
10
# File 'lib/glark/output/match_list.rb', line 8

def matches
  @matches
end