Sha256: 3d8e402d40e680d2913919b9031f3963a0320334af93dc410a0a36124932f885
Contents?: true
Size: 781 Bytes
Versions: 5
Compression:
Stored size: 781 Bytes
Contents
module Danger module Changelog module Config extend self attr_accessor :placeholder_line def placeholder_line=(value) if value new_value = value new_value = "* #{new_value}" unless new_value.start_with?('* ') new_value = "#{new_value}\n" unless new_value.end_with?("\n") @placeholder_line = new_value else @placeholder_line = nil end end def placeholder_line? !@placeholder_line.nil? end def reset self.placeholder_line = "* Your contribution here.\n" end reset end class << self def configure block_given? ? yield(Config) : Config end def config Config end end end end
Version data entries
5 entries across 5 versions & 1 rubygems