Class: Agentilda::Unblocker::Outcome
- Inherits:
-
Data
- Object
- Data
- Agentilda::Unblocker::Outcome
- Defined in:
- lib/agentilda/unblocker.rb
Overview
What became of one plan.
Instance Attribute Summary collapse
-
#after ⇒ Array<Question>
readonly
Open now.
-
#before ⇒ Array<Question>
readonly
Open before the agent ran.
-
#note ⇒ String
readonly
One line about how it went.
-
#ok ⇒ Boolean
readonly
Whether the agent ran without failing.
-
#subject ⇒ Agentilda::Subject
readonly
As the folder stands now.
Instance Method Summary collapse
-
#cleared? ⇒ Boolean
blocked.mdis gone, so the plan is out of the block. -
#folded ⇒ Array<Integer>
The questions this run actually disposed of.
- #ordinal ⇒ Agentilda::Ordinal
-
#unreadable? ⇒ Boolean
A
blocked.mdno program can read. -
#waiting ⇒ Array<Question>
Still open, with an answer sitting unfolded.
Instance Attribute Details
#after ⇒ Array<Question> (readonly)
Returns open now.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/agentilda/unblocker.rb', line 58 Outcome = Data.define(:subject, :ok, :note, :before, :after) do # @return [Agentilda::Ordinal] def ordinal = subject.feature.ordinal # @return [Array<Integer>] the questions this run actually disposed of def folded = before.map(&:number) - after.map(&:number) # @return [Boolean] `blocked.md` is gone, so the plan is out of the block def cleared? = !subject.file?("blocked.md") # @return [Boolean] a `blocked.md` no program can read def unreadable? = subject.unreadable_block? # @return [Array<Question>] still open, with an answer sitting unfolded def waiting = after.select(&:answered) end |
#before ⇒ Array<Question> (readonly)
Returns open before the agent ran.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/agentilda/unblocker.rb', line 58 Outcome = Data.define(:subject, :ok, :note, :before, :after) do # @return [Agentilda::Ordinal] def ordinal = subject.feature.ordinal # @return [Array<Integer>] the questions this run actually disposed of def folded = before.map(&:number) - after.map(&:number) # @return [Boolean] `blocked.md` is gone, so the plan is out of the block def cleared? = !subject.file?("blocked.md") # @return [Boolean] a `blocked.md` no program can read def unreadable? = subject.unreadable_block? # @return [Array<Question>] still open, with an answer sitting unfolded def waiting = after.select(&:answered) end |
#note ⇒ String (readonly)
Returns one line about how it went.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/agentilda/unblocker.rb', line 58 Outcome = Data.define(:subject, :ok, :note, :before, :after) do # @return [Agentilda::Ordinal] def ordinal = subject.feature.ordinal # @return [Array<Integer>] the questions this run actually disposed of def folded = before.map(&:number) - after.map(&:number) # @return [Boolean] `blocked.md` is gone, so the plan is out of the block def cleared? = !subject.file?("blocked.md") # @return [Boolean] a `blocked.md` no program can read def unreadable? = subject.unreadable_block? # @return [Array<Question>] still open, with an answer sitting unfolded def waiting = after.select(&:answered) end |
#ok ⇒ Boolean (readonly)
Returns whether the agent ran without failing.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/agentilda/unblocker.rb', line 58 Outcome = Data.define(:subject, :ok, :note, :before, :after) do # @return [Agentilda::Ordinal] def ordinal = subject.feature.ordinal # @return [Array<Integer>] the questions this run actually disposed of def folded = before.map(&:number) - after.map(&:number) # @return [Boolean] `blocked.md` is gone, so the plan is out of the block def cleared? = !subject.file?("blocked.md") # @return [Boolean] a `blocked.md` no program can read def unreadable? = subject.unreadable_block? # @return [Array<Question>] still open, with an answer sitting unfolded def waiting = after.select(&:answered) end |
#subject ⇒ Agentilda::Subject (readonly)
Returns as the folder stands now.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/agentilda/unblocker.rb', line 58 Outcome = Data.define(:subject, :ok, :note, :before, :after) do # @return [Agentilda::Ordinal] def ordinal = subject.feature.ordinal # @return [Array<Integer>] the questions this run actually disposed of def folded = before.map(&:number) - after.map(&:number) # @return [Boolean] `blocked.md` is gone, so the plan is out of the block def cleared? = !subject.file?("blocked.md") # @return [Boolean] a `blocked.md` no program can read def unreadable? = subject.unreadable_block? # @return [Array<Question>] still open, with an answer sitting unfolded def waiting = after.select(&:answered) end |
Instance Method Details
#cleared? ⇒ Boolean
Returns blocked.md is gone, so the plan is out of the block.
66 |
# File 'lib/agentilda/unblocker.rb', line 66 def cleared? = !subject.file?("blocked.md") |
#folded ⇒ Array<Integer>
Returns the questions this run actually disposed of.
63 |
# File 'lib/agentilda/unblocker.rb', line 63 def folded = before.map(&:number) - after.map(&:number) |
#ordinal ⇒ Agentilda::Ordinal
60 |
# File 'lib/agentilda/unblocker.rb', line 60 def ordinal = subject.feature.ordinal |
#unreadable? ⇒ Boolean
Returns a blocked.md no program can read.
69 |
# File 'lib/agentilda/unblocker.rb', line 69 def unreadable? = subject.unreadable_block? |
#waiting ⇒ Array<Question>
Returns still open, with an answer sitting unfolded.
72 |
# File 'lib/agentilda/unblocker.rb', line 72 def waiting = after.select(&:answered) |