Class: AskChatgpt::Prompts::Improve

Inherits:
Base
  • Object
show all
Defined in:
lib/ask_chatgpt/prompts/improve.rb

Direct Known Subclasses

CodeReview, Explain, FindBug, Refactor, RspecTest, UnitTest

Instance Attribute Summary

Attributes inherited from Base

#record

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from AskChatgpt::Prompts::Base

Instance Method Details

#contentObject



5
6
7
8
9
10
# File 'lib/ask_chatgpt/prompts/improve.rb', line 5

def content
  [
    action_info,
    method_info,
  ].reject { |v| v.blank? }.join("\n")
end