class Doing::Entry

An individual changelog item

Attributes

prefix[W]
string[R]
type[R]

Public Class Methods

new(string, type, prefix: false) click to toggle source
# File lib/doing/changelog/entry.rb, line 10
def initialize(string, type, prefix: false)
  @string = string
  @type = type
  @prefix = prefix
end

Public Instance Methods

clean(string) click to toggle source
# File lib/doing/changelog/entry.rb, line 16
def clean(string)
  string.gsub(/\|/, '\|')
end
print_prefix() click to toggle source
to_s() click to toggle source
# File lib/doing/changelog/entry.rb, line 24
def to_s
  "- #{print_prefix}#{clean(@string)}"
end