Project

General

Profile

Feature #9064

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

In Java, it's easy to define a package for a certain class: 

 package com.company.MyClass 

 We don't use that convention in Ruby but we have another way of packaging classes: 

 ~~~ruby 
 module MyLibrary 
   module InnerNamespace 
     class MyClass 
     end 
   end 
 end 
 ~~~ 

 I'd prefer to be able to use something like this instead meaning exactly the same thing: 

 ~~~ruby 
 package MyLibrary::InnerNamespace # or MyLibrary.InnerNamespace, I don't really care 
 class MyClass 
 end 
 ~~~ 

 Could you please consider this idea?

Back