It looks like you're examining the generator templates there. The engine generator will create a module with the same name as your engine (simply for convenience, you dont need to use or keep it. The <%= engine_class_name %> part is replaced when ERb processes the generator templates.
In general, most Rails generators use ERb templates to distribute code that needs to be created with particular values replaced at the time of file creation. james On 2/20/06, mengjiang liu <[EMAIL PROTECTED]> wrote: > what's meaning of this line code in init_engine? > such as > > module <%= engine_class_name %> > end > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > engine-users mailing list > [email protected] > http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org > -- * J * ~ _______________________________________________ engine-users mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
