Class: Bri::Search::Base
- Inherits:
-
Object
- Object
- Bri::Search::Base
- Defined in:
- lib/bri/search/base.rb
Instance Attribute Summary collapse
-
#matches ⇒ Object
readonly
Returns the value of attribute matches.
-
#term ⇒ Object
readonly
Returns the value of attribute term.
Instance Method Summary collapse
-
#initialize(term) ⇒ Base
constructor
A new instance of Base.
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
#matches ⇒ Object (readonly)
Returns the value of attribute matches.
4 5 6 |
# File 'lib/bri/search/base.rb', line 4 def matches @matches end |
#term ⇒ Object (readonly)
Returns the value of attribute term.
4 5 6 |
# File 'lib/bri/search/base.rb', line 4 def term @term end |