Class: FakerBot::Commands::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/fakerbot/commands/search.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Search

Returns a new instance of Search.



11
12
13
14
15
# File 'lib/fakerbot/commands/search.rb', line 11

def initialize(options)
  @options = options
  @pager = TTY::Pager.new(command: 'less -R')
  @screen = TTY::Screen
end

Instance Method Details

#execute(input) ⇒ Object



17
18
19
# File 'lib/fakerbot/commands/search.rb', line 17

def execute(input)
  render FakerBot::Bot.find(input)
end