Sha256: 52fcd2ccbdfa3975d4084d90d157f12ed8bdd0ae6fe33a68c9386c38859fac77

Contents?: true

Size: 354 Bytes

Versions: 6

Compression:

Stored size: 354 Bytes

Contents

require 'cliutils/messenger'

module CLIUtils
  # Allows access to a single, unified instances of
  # CLUtils::Messenger.
  module Messaging
    extend self

    # Singleton method to return (or initialize, if needed)
    # a CLIUtils::Messenger.
    # @return [Messenger]
    def messenger
      @messenger ||= CLIUtils::Messenger.new
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cliutils-2.2.6 lib/cliutils/messaging.rb
cliutils-2.2.5 lib/cliutils/messaging.rb
cliutils-2.2.4 lib/cliutils/messaging.rb
cliutils-2.2.3 lib/cliutils/messaging.rb
cliutils-2.2.2 lib/cliutils/messaging.rb
cliutils-2.2.1 lib/cliutils/messaging.rb