class Doing::Entry

An individual changelog item

Attributes

string[R]
type[R]

Public Class Methods

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

Public Instance Methods

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