Project

General

Profile

Actions

Feature #9064

closed

Add support for packages, like in Java

Added by rosenfeld (Rodrigo Rosenfeld Rosas) over 8 years ago. Updated almost 8 years ago.

Status:
Feedback
Priority:
Normal
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