From: Masatoshi SEKI Date: 2001-05-11T21:23:14+09:00 Subject: [ruby-talk:14996] Re: Includes in classes Hello, > I went to the source that was failing (there were several module_function entries within classes), it looked like this: > > class ERb > Revision = '$Date: 2000/04/23 15:09:10 $' > > def version > "erb.rb [1.2.2 #{ERb::Revision.split[1]}]" > end > module_function :version It's a old (ruby-1.4?) way. Current stable version is .. | class ERb | Revision = '$Date: 2000/12/28 22:36:47 $' | | def self.version | "erb.rb [1.3.3 #{ERb::Revision.split[1]}]" | end | class ERbLight | Revision = '$Date: 2000/12/28 22:36:47 $' | | def self.version | "erbl.rb [1.3.3 #{ERbLight::Revision.split[1]}]" | end erb-1.3.3 --> http://www.ruby-lang.org/en/raa-list.rhtml?name=ERb+-+Tiny+eRuby --> http://www2a.biglobe.ne.jp/~seki/ruby/erb-1.3.3.tar.gz Seki.