ruby picture

RCR 205: Put base64.rb methods under their own module

Submitted by djberg96 (Sat Oct 30 10:43:04 UTC 2004)

Abstract

The base64.rb methods should be wrapped in their own module.

Problem

The base64.rb file is used like a header file. This can cause potential function/method name collision. It is also un-Ruby like.

Proposal

Wrap these methods under a Base64 module.

Analysis

RCR 3120 (which was accepted and implemented) did the same thing for the timeout.rb methods.

Implementation

module Base64 ... end

I believe backwards compatability can be maintained the same way it was with timeout.rb.

ruby picture
Comments Current voting

Why is this still pending? The latest snapshots of Ruby have this implemented.


Strongly opposed 0
Opposed 0
Neutral 0
In favor 6
Strongly advocate 2
ruby picture
If you have registered at RCRchive, you may now sign in below. If you have not registered, you may sign up for a username and password. Registering enables you to submit new RCRs, and vote and leave comments on existing RCRs.
Your username:
Your password:

ruby picture

Powered by .