Sha256: c9b1853281273a824db1a93a3f3f752b0dec62c0697e37e55401402df19cd7ee

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 Bytes

Contents

module Runbook::Extensions
  module Steps
    module DSL
      def step(title=nil, &block)
        Runbook::Entities::Step.new(title).tap do |step|
          parent.add(step)
          step.dsl.instance_eval(&block) if block
        end
      end
    end
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
runbook-0.15.0 lib/runbook/extensions/steps.rb