Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Simplify #constantize

#893

This patch makes #constantize use #inject instead of #each, making it more Rubyesque, at least that's my opinion.

Hope you have a look at it.

Reported by Daniel Schierbeck · August 24th, 2008 @ 02:47 PM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Daniel Schierbeck
  2. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to wontfix

    I agree that it's definitely more Rubyish, but it allocates more memory. This is a widely-used method so we trade off better style for higher performance :)

    August 24th, 2008 @ 06:33 PM