Sha256: 1a4192b85fc4b1c3eee452988ba678a97e5a9311222b03f7577e0e262ae3d052
Contents?: true
Size: 449 Bytes
Versions: 15
Compression:
Stored size: 449 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
15 entries across 15 versions & 1 rubygems