module TurnipFormatter
Constants
- VERSION
Attributes
title[RW]
Public Class Methods
add_javascript(scripts)
click to toggle source
# File lib/turnip_formatter.rb, line 29 def add_javascript(scripts) scripts = [scripts] if scripts.is_a? String scripts.each do |s| TurnipFormatter::Renderer::Html.add_javascript(s) end end
add_stylesheet(stylesheets)
click to toggle source
# File lib/turnip_formatter.rb, line 21 def add_stylesheet(stylesheets) stylesheets = [stylesheets] if stylesheets.is_a? String stylesheets.each do |s| TurnipFormatter::Renderer::Html.add_stylesheet(s) end end
configuration()
click to toggle source
# File lib/turnip_formatter.rb, line 41 def configuration self end
configure() { |self| ... }
click to toggle source
# File lib/turnip_formatter.rb, line 37 def configure yield self end
step_templates()
click to toggle source
# File lib/turnip_formatter.rb, line 9 def step_templates @step_templates ||= [] end
step_templates_for(status)
click to toggle source
# File lib/turnip_formatter.rb, line 13 def step_templates_for(status) step_templates.reduce([]) do |templates, t| hooks = t.class.hooks return templates unless hooks.key?(status) templates + [t].product(hooks[status]) end end