From: ts Date: 2006-07-23T02:24:09+09:00 Subject: Re: *_eval >>>>> "E" == Erik Veenstra writes: E> There must be a difference. If I replace aModule.module_eval E> with aModule.instance_eval in one spcific situation, the E> results differ, although self.inspect returns the same value... Well, when you use keywords (like `def' 'alias') ruby use the "current" class to know where it must define the method. With #instance_eval, the current class is the singleton class and ruby will define singleton methods With #module_eval, the current is the class (i.e. self) and ruby define instance methods. By default, #class_eval is the same than #module_eval Guy Decoux