From: ts Date: 2002-12-02T02:19:46+09:00 Subject: Re: class << self (was Re: [FAQ] What do some of Ruby's symbols mean?) >>>>> "H" == Hal E Fulton writes: H> But then, I find that "def self.meth" seems to H> work fine... it work fine, but sometimes it exist a difference pigeon% cat b.rb #!/usr/bin/ruby class A B = 12 def self.a puts "class method A::a : #{B}" end class << self B = 24 def b puts "class method A::b : #{B}" end end end A::a A::b pigeon% pigeon% b.rb class method A::a : 12 class method A::b : 24 pigeon% Guy Decoux