title: How to check if a class or module is namespaced?
body: <p>I am using Ruby on Rails 3.2.2 and I would like to know if it is possible to check whether a class or module is namespaced. That  is, I would like to run something like the following</p>
  
  <pre><code>ANamespaceName::AnotherNamespaceName::AClassName.is_namespaced?
  #=&gt; true
  ANamespaceName::AClassName.is_namespaced?
  #=&gt; true
  AClassName.is_namespaced?
  #=&gt; false
  </code></pre>
  
  <p>In the above code the issue is related to stating / implementing the <code>is_namespaced?</code> method.</p>