Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #461 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[PATCH] Compartmentalized core extensions

Reported by: marcel Assigned to: David
Priority: normal Milestone:
Component: ActiveSupport Version: 0.9.3
Severity: normal Keywords:
Cc:

Description

Organizes the core extensions into modules by category that are placed within a directory for the class that they extend.

Establishes a new name space of the form !ActiveSupport::!CoreExtensions::[BuiltInClass]::[ExtensionModule]

Adds !ActiveSupport::!CoreExtensions::Numeric::Bytes which includes methods such as Numeric#megabytes and Numeric#gigabytes which allow for code like:

next if File.size(file) >= 5.megabytes

Attachments

AS-compartmentalized_core_ext.patch (12.5 kB) - added by marcel on 01/11/05 21:22:59.
Compartmentalized core extensions plus Numeric::Bytes
AS-compartmentalized_core_ext.2.patch (11.9 kB) - added by marcel on 01/11/05 21:29:22.
Previous patch is the wrong one :(

Change History

01/11/05 21:22:59 changed by marcel

  • attachment AS-compartmentalized_core_ext.patch added.

Compartmentalized core extensions plus Numeric::Bytes

01/11/05 21:29:22 changed by marcel

  • attachment AS-compartmentalized_core_ext.2.patch added.

Previous patch is the wrong one :(

01/12/05 12:54:07 changed by david

  • status changed from new to closed.
  • resolution set to fixed.