From: dblack@... Date: 2006-12-10T12:14:37+09:00 Subject: Re: bending ruby space Hi -- On Sun, 10 Dec 2006, Devin Mullins wrote: > Trans wrote: >> i came upon this "pattern" working on a rather difficult problem. see >> if you can wrap your head around this bending of ruby space and what it >> might be good for. >> >> module R; end >> module U; include R; end >> module R; extend U; end > why not: > module R; extend self end > or just: > module R; module_function; ... end > ? > > Devin > (Thas right, biatches. extend self is the new class << self.) I'm not sure what you mean. extend self doesn't do what class << self does. Am I misunderstanding? David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org