From: vardhanvarma@... (Vardhan Varma) Date: 2001-12-31T21:01:56+09:00 Subject: [ruby-talk:29840] Loading file in context of a class instance Hello all, I want to 'load' and 'eval' a file, in the context of class instance. ie. say a file "loadfile" contains -----loadfile----- add_file ( "foo", "bar") rem_file ( "xyz", "abc") -----loadfile----- No in my code, i want to something like load_file( "loadfile", cls ) such that add_file() call should result in cls.add_file(); I'm a ruby-nuby, so pls tell me code snippet to do this. --TIA --Vardhan