lib/hallmonitor/outputter.rb in hallmonitor-1.1.0 vs lib/hallmonitor/outputter.rb in hallmonitor-2.0.0
- old
+ new
@@ -5,10 +5,10 @@
# 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?
+ fail(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