Sha256: 6243a303c880d4f3f76d0219e3189a32c3e93586dd7cbdc7ee4fa2644e1e2e70

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

module Runbook::Extensions
  module Sections
    module DSL
      def section(title, &block)
        Runbook::Entities::Section.new(title).tap do |section|
          parent.add(section)
          section.dsl.instance_eval(&block)
        end
      end
    end
  end

  Runbook::Entities::Book::DSL.prepend(Sections::DSL)
  Runbook::Entities::Section::DSL.prepend(Sections::DSL)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
runbook-0.15.0 lib/runbook/extensions/sections.rb
runbook-0.14.0 lib/runbook/extensions/sections.rb
runbook-0.13.0 lib/runbook/extensions/sections.rb
runbook-0.12.1 lib/runbook/extensions/sections.rb