Sha256: 7a483843373aa88579c13265481906a333d4e52e00e4514ea67ece45958edbb2
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
require 'turnip_formatter/step' module TurnipFormatter class Step module DSL # # @param [TurnipFormatter::Step] step # def extended(step) ::TurnipFormatter::Step.templates[status].each do |style, block| step.docs[style] = step.instance_eval(&block) end end def add_template(style, &block) ::TurnipFormatter::Step.add_template(status, style, &block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
turnip_formatter-0.0.3 | lib/turnip_formatter/step/dsl.rb |