#require 'singleton' module EventAggregator # Public: TODO: Could potentially turn this into a module. # # module OtherSingleton # @index = -1 # @colors = %w{ red green blue } # def self.change # @colors[(@index += 1) % @colors.size] # end # end class Aggregator #include Singleton class <