class StandupMD::Section
A named section of a standup entry, such as current, previous, impediments, or notes.
Attributes
Tasks for the section.
@return [Array<StandupMD::Task>]
The semantic section type.
@return [Symbol]
Public Class Methods
Source
# File lib/standup_md/section.rb, line 27 def initialize(type, tasks = []) @type = type.to_sym @tasks = tasks.map { |task| build_task(task) } end
Constructs an instance of StandupMD::Section.
@param [Symbol, String] type @param [Array<String, StandupMD::Task>] tasks
Public Instance Methods
Source
# File lib/standup_md/section.rb, line 38 def <<(task) tasks << build_task(task) end
Source
# File lib/standup_md/section.rb, line 46 def empty? tasks.empty? end
Is the section empty?
@return [Boolean]
Source
# File lib/standup_md/section.rb, line 54 def to_s type.to_s end
The semantic section type.
@return [String]