Class: Bri::Search::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/bri/search/base.rb

Direct Known Subclasses

Class, Method

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(term) ⇒ Base

Returns a new instance of Base.



6
7
8
9
# File 'lib/bri/search/base.rb', line 6

def initialize( term )
  @term = term
  @matches = []
end

Instance Attribute Details

#matchesObject (readonly)

Returns the value of attribute matches.



4
5
6
# File 'lib/bri/search/base.rb', line 4

def matches
  @matches
end

#termObject (readonly)

Returns the value of attribute term.



4
5
6
# File 'lib/bri/search/base.rb', line 4

def term
  @term
end