Module: Runbook::Extensions::Sections::DSL
- Defined in:
- lib/runbook/extensions/sections.rb
Instance Method Summary collapse
Instance Method Details
#section(title, *tags, labels: {}, &block) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/runbook/extensions/sections.rb', line 4 def section(title, *, labels: {}, &block) Runbook::Entities::Section.new( title, tags: , labels: labels, ).tap do |section| parent.add(section) section.dsl.instance_eval(&block) end end |