Class: AskChatgpt::Prompts::RandomTip
- Defined in:
- lib/ask_chatgpt/prompts/random_tip.rb
Constant Summary collapse
- TEMPERATURE =
0.8
- TOPIC =
"- Ruby\n- Ruby on Rails\n- Active Record\n- Active Record Migrations\n- Active Record Validations\n- Active Record Callbacks\n- Active Record Associations\n- Active Record Query Interface\n- Active Support Core Extensions\n- Action Mailer\n- Active Job\n- Active Storage\n- Action Cable\n- Layouts and Rendering in Rails\n- Action View Form Helpers\n- Action Controller Overview\n- Rails Routing from the Outside In\n- Rails Internationalization (I18n)\n- Testing Rails Applications\n- Securing Rails Applications\n- Debugging Rails Applications\n- Configuring Rails Applications\n- The Rails Command Line\n- The Asset Pipeline\n- Autoloading and Reloading Constants\n- Classic to Zeitwerk\n- Caching with Rails: An Overview\n- Using Rails for API-only Applications\n- Multiple Databases with Active Record\n- Ruby-related gems\n- Ruby, Rails open-source projects\n"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(topic = TOPIC) ⇒ RandomTip
constructor
A new instance of RandomTip.
Methods inherited from Base
Constructor Details
#initialize(topic = TOPIC) ⇒ RandomTip
Returns a new instance of RandomTip.
39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/ask_chatgpt/prompts/random_tip.rb', line 39 def initialize(topic = TOPIC) prompt_text = " Tell me interesting or useful tips,facts,method,code,etc for any of:\n \#{topic}\n\n Answer with direct answer and no other text.\n Try to be shoft by informative and clear.\n Code examples reply in markdown format.\n\n Level of difficulty: ADVANCED\n PROMPT\n super(prompt_text)\nend\n" |