Module: Omen::Asked
Overview
Extends Omen::Reading with the way a question is added to it.
Instance Method Summary collapse
-
#answering? ⇒ Boolean
Whether Claude is still working on the last question.
-
#ask(question) ⇒ Omen::Question
Records what was typed, which is what sets a run going.
Instance Method Details
#answering? ⇒ Boolean
Returns whether Claude is still working on the last question.
9 |
# File 'app/models/omen/asked.rb', line 9 def answering? = (unstarted? || started?) && fresh? |
#ask(question) ⇒ Omen::Question
Records what was typed, which is what sets a run going.
6 |
# File 'app/models/omen/asked.rb', line 6 def ask(question) = questions.create! content: [ { type: 'text', text: question } ] |