Sha256: 785b08bc37662a4759cbf8adbf1b12bb5538aac4a68fd78892dc2fc9e831e60e
Contents?: true
Size: 450 Bytes
Versions: 26
Compression:
Stored size: 450 Bytes
Contents
module Cucumber module HTMLFormatter class TemplateWriter attr_reader :template def initialize(template) @template = template end 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 end end end
Version data entries
26 entries across 26 versions & 4 rubygems