Project

General

Profile

Actions

Feature #9064

closed

Add support for packages, like in Java

Added by rosenfeld (Rodrigo Rosenfeld Rosas) over 10 years ago. Updated over 9 years ago.

Status:
Feedback
Target version:
-
[ruby-core:58080]

Description

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:

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:

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

Could you please consider this idea?


Files

feature-9064.pdf (16.7 KB) feature-9064.pdf Slide for proposal (newest from Firefox) rosenfeld (Rodrigo Rosenfeld Rosas), 06/30/2014 05:17 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0