title: How to fix rubocop offense for a class class a::b::c
body: <p>I have following file
  lib/a/b/c.rb</p>
  
  <pre><code>class a::b::c
    def request(env)
      #some code here
    end
  end
  </code></pre>
  
  <p>Now i am using rubocop style </p>
  
  <pre><code>Style/ClassAndModuleChildren:
    Enabled: true
  </code></pre>
  
  <p>I am getting rubocop offense for this </p>
  
  <pre><code>lib/a/b/c.rb:1:7: C: Use nested module/class definitions instead of compact style.
  class a::b::c
  </code></pre>
  
  <p>When i update my code to following offence get fixed </p>
  
  <p>Style 1 </p>
  
  <pre><code>class a
    class b
      class c
        def request(env)
          #some code here
        end
      end
    end
  end
  </code></pre>
  
  <p>Style 2</p>
  
  <pre><code>module a
    module b
      class c
        def request(env)
          #some code here
        end
      end
    end
  end
  </code></pre>
  
  <p>I think i should use <code>Style 2</code> as i am using <code>require 'a'</code> in one of my file.</p>
  
  <p>Please let me know how to fix this type &amp; offences and reason for it</p>