class Danger::Changelog::Parsers::Base

Attributes

listeners[R]

Public Class Methods

new(listeners = []) click to toggle source
# File lib/changelog/parsers/base.rb, line 5
def initialize(listeners = [])
  @listeners = listeners
end

Public Instance Methods

add_listener(changelog) click to toggle source
# File lib/changelog/parsers/base.rb, line 11
def add_listener(changelog)
  listeners << changelog
end

Private Instance Methods

notify_of_bad_line(message, detail = nil) click to toggle source
# File lib/changelog/parsers/base.rb, line 17
def notify_of_bad_line(message, detail = nil)
  listeners.each { |changelog| changelog.add_bad_line(message, detail) }
end
notify_of_global_failure(message) click to toggle source
# File lib/changelog/parsers/base.rb, line 21
def notify_of_global_failure(message)
  listeners.each { |changelog| changelog.add_global_failure(message) }
end