Class: Agentilda::Unblocker::Question

Inherits:
Data
  • Object
show all
Defined in:
lib/agentilda/unblocker.rb

Overview

One open question, as blocked.md writes it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#answeredBoolean (readonly)

Returns whether an ## A<n> of the same number is waiting.

Returns:

  • (Boolean)

    whether an ## A<n> of the same number is waiting



28
29
30
31
# File 'lib/agentilda/unblocker.rb', line 28

Question = Data.define(:number, :heading, :answered) do
  # @return [String]
  def to_s = answered ? "#{heading}  ← answer waiting" : heading
end

#headingString (readonly)

Returns the heading text, hashes stripped.

Returns:

  • (String)

    the heading text, hashes stripped



28
29
30
31
# File 'lib/agentilda/unblocker.rb', line 28

Question = Data.define(:number, :heading, :answered) do
  # @return [String]
  def to_s = answered ? "#{heading}  ← answer waiting" : heading
end

#numberInteger (readonly)

Returns the n in ## B<n>.

Returns:

  • (Integer)

    the n in ## B<n>



28
29
30
31
# File 'lib/agentilda/unblocker.rb', line 28

Question = Data.define(:number, :heading, :answered) do
  # @return [String]
  def to_s = answered ? "#{heading}  ← answer waiting" : heading
end

Instance Method Details

#to_sString

Returns:

  • (String)


30
# File 'lib/agentilda/unblocker.rb', line 30

def to_s = answered ? "#{heading}  ← answer waiting" : heading