Class: Cheri::Explorer::SearchResults
- Inherits:
-
Object
- Object
- Cheri::Explorer::SearchResults
- Defined in:
- lib/cheri/explorer/explorer.rb
Instance Method Summary collapse
- #args ⇒ Object
-
#initialize(sargs, results) ⇒ SearchResults
constructor
A new instance of SearchResults.
- #length ⇒ Object
- #results ⇒ Object
Constructor Details
#initialize(sargs, results) ⇒ SearchResults
Returns a new instance of SearchResults.
285 286 287 288 289 290 |
# File 'lib/cheri/explorer/explorer.rb', line 285 def initialize(sargs,results) raise Cheri.type_error(sargs,SearchArgs) unless SearchArgs === sargs raise Cheri.type_error(results,Array) unless Array === results @a = sargs @r = results end |
Instance Method Details
#args ⇒ Object
291 292 293 |
# File 'lib/cheri/explorer/explorer.rb', line 291 def args @a end |
#length ⇒ Object
297 298 299 |
# File 'lib/cheri/explorer/explorer.rb', line 297 def length @r.length end |
#results ⇒ Object
294 295 296 |
# File 'lib/cheri/explorer/explorer.rb', line 294 def results @r end |