Class: Faker::Bot::Commands::Search Private

Inherits:
Faker::Bot::Command show all
Defined in:
lib/faker/bot/commands/search.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Runs a search against [Faker<Base>] methods and returns matching results

Instance Attribute Summary

Attributes inherited from Faker::Bot::Command

#options

Instance Method Summary collapse

Methods inherited from Faker::Bot::Command

#initialize

Constructor Details

This class inherits a constructor from Faker::Bot::Command

Instance Method Details

#execute(input, output: $stdout) ⇒ IO

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Execute the ‘search` command

Returns:

  • (IO)


20
21
22
23
# File 'lib/faker/bot/commands/search.rb', line 20

def execute(input, output: $stdout)
  result = Reflectors::Search.call(input)
  render(result, output)
end