On Mar 27, 4:48 pm, Siemen Baader <sbaa... / ruc.dk> wrote:
>  >>   def ORM.table table
>  >>     class_eval("@@table = :%s" % table)
>  >>   end

FYI:

C:\>qri class_variable_set
----------------------------------------------
Module#class_variable_set
     obj.class_variable_set(symbol, obj)    => obj
------------------------------------------------------------------------
     Sets the class variable names by _symbol_ to _object_.

        class Fred
          @@foo = 99
          def foo
            @@foo
          end
        end

        def Fred.foo
          class_variable_set(:@@foo, 101)      #=> 101
        end
        Fred.foo
        Fred.new.foo                             #=> 101

However, given your problems, I would advise using instance variables
on the class itself along with accessor methods for them.

Instead of:

  class Foo
    @@bar = 12
    def jam
      p @@bar
    end
  end

Use:

  class Foo
    @bar = 12
    class << self
      attr_accessor :bar
    end
    def jam
      p self.class.bar
    end
  end