From: Cris Shupp Date: 2009-08-14T03:01:56+09:00 Subject: Re: skip_before_filter (Do I need a lesson in modules/mixins?) Well I can reproduce that in irb, but no it doesn't answer my question. Anyone out there know the answer? Thanks, Cris Jesús Gabriel y Galán wrote: > On Thu, Aug 13, 2009 at 4:19 PM, Cris Shupp wrote: > >> I tried creating a simple example (using what your url illustrated) but >> it does not work. �Here is my toy �The first 'call_me' invocation is >> what I am assuming is equivalent to the skip_before_filter call: >> >> module Test >> >> �def self.include(base) > > def self.included(base) > > > irb(main):016:0> module Test > irb(main):017:1> > irb(main):018:1* def self.included(base) > irb(main):019:2> base.extend(ClassMethods) > irb(main):020:2> end > irb(main):021:1> module ClassMethods > irb(main):022:2> def call_me > irb(main):023:3> puts "Class method" > irb(main):024:3> end > irb(main):025:2> end > irb(main):026:1> end > => nil > irb(main):027:0> class Tester > irb(main):028:1> include Test > irb(main):029:1> call_me > irb(main):030:1> end > Class method > => nil > > Hope this helps, > > Jesus. -- Posted via http://www.ruby-forum.com/.