The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
A Strange Way To Call Super

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Michael Granger

Posts: 53
Nickname: ged
Registered: Sep, 2005

Michael Granger is just another Ruby Hacker.
A Strange Way To Call Super Posted: Mar 24, 2009 5:04 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Michael Granger.
Original Post: A Strange Way To Call Super
Feed Title: devEiate
Feed URL: http://deveiate.org/feed/rss/blog
Feed Description: A blog about Ruby, codecraft, testing, linguistics, and stuff. Mostly stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Michael Granger
Latest Posts From devEiate

Advertisement

Recently while trying to track down a memory problem in Redleaf, I ran across a curious bit of code in Ruby 1.9.1’s ‘uri’ library (in uri/common.rb specifically):

[code]

I can’t help but wonder if this isn’t a bit of defensive programming against monkeypatching or something. Is it done this way to avoid exposing a public #to_s?

It’s a mystery. Perhaps I’ll have to go track down the commit message for this change. Or if anyone knows, feel free to leave a comment.

Read: A Strange Way To Call Super

Topic: RubyLearning's Sponsor: ProjectLocker Previous Topic   Next Topic Topic: Querying the finder with iTerm

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use