Class: FakerBot::Commands::Search

Inherits:
FakerBot::Command show all
Defined in:
lib/fakerbot/commands/search.rb

Instance Attribute Summary

Attributes inherited from FakerBot::Command

#options

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Search

Returns a new instance of Search.



8
9
10
# File 'lib/fakerbot/commands/search.rb', line 8

def initialize(options)
  @options = options
end

Instance Method Details

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



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

def execute(input, output: $stdout)
  render FakerBot::Reflector.find(input), output
end