Method: WhatIs#search

Defined in:
lib/whatis.rb

#search(title, limit = 5, **options) ⇒ Object



166
167
168
169
170
# File 'lib/whatis.rb', line 166

def search(title, limit = 5, **options)
  @infoboxer
    .search(title, limit: limit) { |req| setup_request(req, **options) }
    .map { |page| ThisIs.create(self, page.title, page) }
end