class Cucumber::HTMLFormatter::TemplateWriter
Attributes
template[R]
Public Class Methods
new(template)
click to toggle source
# File lib/cucumber/html_formatter/template_writer.rb, line 6 def initialize(template) @template = template end
Public Instance Methods
write_between(from, to)
click to toggle source
# File lib/cucumber/html_formatter/template_writer.rb, line 10 def write_between(from, to) from_exists = !from.nil? && template.include?(from) after_from = from_exists ? template.split(from)[1] : template before_to = to.nil? ? after_from : after_from.split(to)[0] return before_to end