From: ts Date: 2003-09-09T01:42:14+09:00 Subject: Re: problem with Module#append_features >>>>> "F" == Ferenc Engard writes: F> I need to write a constructor-like method for a module. From the help I F> have found the Module#append_features method, which look like is the one F> I want. The problem is that apparently this method does not exist! At svg% ruby -e 'p Module.private_instance_methods(false).grep(/app/)' ["append_features"] svg% F> least, it do not work for me (i.e. is not called automatically), and Well, it depend what you want to do svg% cat b.rb #!/usr/bin/ruby module M def self.append_features(kl) puts "append_features #{kl}" super end end class A include M end svg% svg% b.rb append_features A svg% Guy Decoux