Class: FakerBot::Commands::Search
- Inherits:
-
Object
- Object
- FakerBot::Commands::Search
- Defined in:
- lib/fakerbot/commands/search.rb
Instance Method Summary collapse
- #execute(input) ⇒ Object
-
#initialize(options) ⇒ Search
constructor
A new instance of Search.
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() = @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 |