>>>>> "F" == Fritz Heinrichmeyer <fritz.heinrichmeyer / fernuni-hagen.de> writes:

F> is not set in the context of a method so there will be set an object
F> variable from .. which class?
 
 Well, just try it

pigeon% cat b.rb
#!/usr/bin/ruby
class A
   @@a = 12

   def tt
      p @@a
   end

   def self.tt
      p @@a
   end
end

A.tt
A.new.tt
pigeon%
 
pigeon% b.rb
12
12
pigeon% 



Guy Decoux