From: Wayne Blair Date: 2001-05-15T04:40:05+09:00 Subject: [ruby-talk:15114] Re: Includes in classes It was my bad, I saw a requirement of ruby 1.6.3 on the erb 1.3.3 download page and I was using 1.6.2 on windows, so I downloaded erb 1.2.2. 1.3.3 works fine with 1.6.2 though. Thanks. Wayne "Masatoshi SEKI" wrote in message news:20010511212304.VBAOC0A82726.C7BC0C8A@mail.biglobe.ne.jp... > > 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. >