Method: Chid::Commands::StackOverflow#run
- Defined in:
- lib/chid/commands/stack_overflow.rb
#run ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/chid/commands/stack_overflow.rb', line 28 def run text_to_search = text_to_search = get_text_to_search if text_to_search.empty? questions = ::StackOverflowApi.questions(text_to_search) ::Paginator.new(questions).paginate { |question| question.summary } end |