Class: AskChatgpt::Prompts::Custom
- Defined in:
- lib/ask_chatgpt/prompts/custom.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
Attributes inherited from Base
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(*args, block) ⇒ Custom
constructor
A new instance of Custom.
Constructor Details
#initialize(*args, block) ⇒ Custom
Returns a new instance of Custom.
6 7 8 9 |
# File 'lib/ask_chatgpt/prompts/custom.rb', line 6 def initialize(*args, block) @args = args @block = block end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
4 5 6 |
# File 'lib/ask_chatgpt/prompts/custom.rb', line 4 def args @args end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
4 5 6 |
# File 'lib/ask_chatgpt/prompts/custom.rb', line 4 def block @block end |
Instance Method Details
#content ⇒ Object
11 12 13 |
# File 'lib/ask_chatgpt/prompts/custom.rb', line 11 def content instance_exec(*args, &block) end |