Sha256: cfd2b8014d2a727c7ab0ded8638301180f6b045e25431d4e200a35c06f9d5f2e
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
module Hallmonitor # An {Outputter} is an object that can process {Hallmonitor::Event}s class Outputter attr_reader :name # Initializes a new Outputter # @param name [Object] Probably a string or symbol, the name of this # outputter def initialize(name) raise(ArgumentError, "Outputter expects a name") if name.nil? @name = name end # Processes an event. Child classes should implement this to output events # @param event [Event] the event to process def process(event) # Nothing end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hallmonitor-1.1.0 | lib/hallmonitor/outputter.rb |
hallmonitor-1.0.0 | lib/hallmonitor/outputter.rb |