module SimpleRequestStats
  mattr_accessor :groups
  @@groups = {}

  def self.setup
    yield self
  end

  def self.group(name, &block)
    groups[:name] = block
  end
end


module SimpleRequestStats
  mattr_reader :groups
  @@groups = {}

  def self.setup
    yield self
  end

  def self.group(name, &block)
    groups[:name] = block
  end
end


Use attribute reader instead of accessor
Use attribute reader instead of accessor
