Method: WhatIs#search
- Defined in:
- lib/whatis.rb
#search(title, limit = 5, **options) ⇒ Object
Used by WhatIs::ThisIs::NotFound#search
166 167 168 169 170 |
# File 'lib/whatis.rb', line 166 def search(title, limit = 5, **) @infoboxer .search(title, limit: limit) { |req| setup_request(req, **) } .map { |page| ThisIs.create(self, page.title, page) } end |