From: Joel Pearson Date: 2013-01-30T19:47:31+09:00 Subject: Re: question on watir Raj pal wrote in post #1094296: > I am not sure whether you have answered my question. Actually my > question was the define_method was getting called when I execute the > file, But there was no object creation is in my file like you did( > Raja.new.raja). "define_method" is getting called when I execute the > file, So my question was who calls this define method. Actually it was > declared inside Module.rb. > > like > > def define_method(*args) > end > > RAJ Because you haven't contained it within a method, it'll execute when you run the file. -- Posted via http://www.ruby-forum.com/.