Does this work with local variables too?

For example, lets say I have a file called:

  foobar.rb

Inside it we could have a class

class Foo
  def test
    puts 'hi from class Foo'
  end
end

foo_object = Foo.new


Now, I would like to use this variable
foo_object
in another ruby file, or context.

But as far as I know without eval this was not possible.

Is this somehow possible with 'script'? (My brain is a bit confused 
right now.)
-- 
Posted via http://www.ruby-forum.com/.