10 Oct '13, 1am

@noteu old but gold

Asfand Yar Qazi , Posted July 31, 2009, 12:38 am I was GOING to use alias_method in a custom form builder that I was writing, so that the form could either use (for example) the text_field method if it wanted the customizations the custom form builder introduced, or resort to (for example) original_text_field if it did not (the aliased-away old method). But then I found something. The excellent Ruby Facets library introduces a method called ‘Kernel#as’ (description: “Returns a As-functor that allows one to call any ancestor‘s method directly of the given object.”) So I now have a method in the form builder called ‘original’, which is simply: def original; return self.as(ancestor); end So the form can choose to have the customizations provided by my form builder if it wants, by simply using text_field, or it can do this if I have a unique requirement that I don’t want to ha...

Full article: http://yehudakatz.com/2009/03/06/alias_method_chain-in-mo...

Tweets

@noteu another one

yehudakatz.com 10 Oct '13, 1am

Gabe da Silveira , Posted February 15, 2010, 1:15 pm I gotta give you props for being very diplomatic in this post Yehuda....

$NOK $BBRY Nokia, BlackBerry to retire old plat...

digitimes.com 09 Oct '13, 8am

Nokia, BlackBerry to retire old platforms differently Daniel Shen, Taipei; Steve Shen, DIGITIMES [Wednesday 9 October 2013...

Lower Prices For 2014 Prius Plug-In Models

hybridcars.com 09 Oct '13, 6pm

Toyota announced today that it is lowering the price of its 2014 Prius Plug-in hybrid models by over $2,000 for the base a...

Smartphone vendors likely to revamp strategies ...

digitimes.com 09 Oct '13, 4am

Smartphone vendors likely to revamp strategies for mini models Daniel Shen, Taipei; Steve Shen, DIGITIMES [Wednesday 9 Oct...

WATCHES: Dr. Romanelli x Bamford Watch Dept. Go...

djbobbytrends.com 08 Oct '13, 9pm

Just last week we highlighted Dr. Romanelli’s latest collaboration with HEAD PORTER on their “Army vs Navy” One-Off Bag Co...

WATCHES: Dr. Romanelli x Bamford Watch Dept. Go...

djbobbytrends.com 08 Oct '13, 6pm

Just last week we highlighted Dr. Romanelli’s latest collaboration with HEAD PORTER on their “Army vs Navy” One-Off Bag Co...

This toilet roll is made from gold -- and costs...

singaporeseen.stomp.com.sg 10 Oct '13, 6am

This article is contributed by the STOMP Team. An Instagram photo posted by interior and fashion designer Kelly Wearstler ...

WATCHES: Dr. Romanelli x Bamford Watch Dept. Go...

djbobbytrends.com 08 Oct '13, 4pm

Just last week we highlighted Dr. Romanelli’s latest collaboration with HEAD PORTER on their “Army vs Navy” One-Off Bag Co...

Forbes reveals world’s top-earning male models: Gisele Bündchen, who has nabbed the top female slot for seven ...

Forbes reveals world’s top-earning male models:...

luxuo.com 09 Oct '13, 3pm

Gandy has taken on a role as the UK’s unofficial ‘Mr Fashion’ with his work promoting British designers and the London Col...

3 Models That Could Help Utilities Make Money From Solar

3 Models That Could Help Utilities Make Money F...

greentechmedia.com 08 Oct '13, 6pm

When the world wide web first came onto the scene, the dominant supplier of proprietary software, Microsoft, was forced to...

Things only models can make look cool: Edie & Julia after Louis Vuitton

Things only models can make look cool: Edie & J...

fashionising.com 08 Oct '13, 4pm

Imagine you’re wearing a hoodie, hair up in a simply ponytail, cigarette in one hand and plastic champagne class in the ot...

Vans Old Skool “Black”

kicksonfire.com 07 Oct '13, 5pm

is here to provide a simple solution to those what to wear woes. This pair keeps it easy with a black canvas build with bi...

You Won’t Believe What a 9-Year-Old Can Teach Congress

You Won’t Believe What a 9-Year-Old Can Teach C...

care2.com 05 Oct '13, 4am

It seems that just about everyone has an opinion about the government shutdown . Of all the reactions I’ve seen, however, ...

Content Curation: Pruning Old “Fresh” Content To Reveal The Evergreen

Content Curation: Pruning Old “Fresh” Content T...

searchengineland.com 08 Oct '13, 1pm

Most sites deliver regularly-produced content as part of their architecture. At its simplest, it might just be a blog sect...

Old salt mourns the 'death' of Navy tradition i...

navytimes.com 08 Oct '13, 2pm

Editor’s note: Retired Lt. Cmdr. Thomas Sousa reports the “death” of Navy tradition in a letter submitted to Navy Times. S...