From: ts Date: 2001-12-12T02:16:32+09:00 Subject: [ruby-talk:28248] Re: extend/include >>>>> "D" == David Alan Black writes: D> is there any difference at all between: It *can* exist a difference between the 2 D> a.extend Whatever #extend, by default, call #extend_object which (always by default) include the module in the singleton class of a D> class << a D> include Whatever D> end #include, by default, call #append_features which (always by default) include the module in the class, but because you've written 'class << a' the include will be made in the singleton class. If you don't change what do ruby by default, it don't exist a difference, if I'm right This is for 1.6.5 *but* if you look at ruby-1.7.2 you'll see that it exist a difference #include call #append_features *and* #included #extend call #extend_object i.e. even if #extend make something similar to #include, #included don't seems called with #extend Guy Decoux