Class: Cheri::Explorer::SearchResults

Inherits:
Object
  • Object
show all
Defined in:
lib/cheri/explorer/explorer.rb

Instance Method Summary collapse

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

#argsObject



291
292
293
# File 'lib/cheri/explorer/explorer.rb', line 291

def args
  @a
end

#lengthObject



297
298
299
# File 'lib/cheri/explorer/explorer.rb', line 297

def length
  @r.length  
end

#resultsObject



294
295
296
# File 'lib/cheri/explorer/explorer.rb', line 294

def results
  @r  
end