From: "Hal E. Fulton" Date: 2003-08-12T08:48:27+09:00 Subject: Re: newbie mixin questions ----- Original Message ----- From: "Michael Garriss" To: "ruby-talk ML" Sent: Monday, August 11, 2003 6:04 PM Subject: Re: newbie mixin questions > Thank you for the explanation. I'm still a bit confused about something > though: > > module Example > def method_I_want_to_be_a_class_method > # whatever > end > def mehtod_I_want_to_be_an_instance_method > # whatever > end > end > > class A > include Example > class << self > include Example > end > end > > How do I seperate the class methods from the instance methods in the > module? In my above code I'll have one extra unwanted class and one > extra unwanted instance method. There is a way to do this, but I can't recall it without peeking. Was this in ch 5 of _The Ruby Way_? Hal