lib/cliutils/messaging.rb in cliutils-2.2.0 vs lib/cliutils/messaging.rb in cliutils-2.2.1

- old
+ new

@@ -1,14 +1,16 @@ require 'cliutils/messenger' module CLIUtils - # CLIMessenger Module - # Outputs coordinated messages to a variety of targets. + # Allows access to a single, unified instances of + # CLUtils::Messenger. module Messaging + extend self + # Singleton method to return (or initialize, if needed) - # a LoggerDelegator. - # @return [LoggerDelegator] + # a CLIUtils::Messenger. + # @return [Messenger] def messenger - @@messenger ||= CLIUtils::Messenger.new + @messenger ||= CLIUtils::Messenger.new end end end