From: Rochit Sen Date: 2013-06-19T18:19:16+09:00 Subject: Re: Creating ruby script exe Devin Christensen wrote in post #1112819: > Looks like there's an example in the docs: > > You can detect whether OCRA is currently building your script by looking > for the Ocra constant. If it is defined, OCRA is currenly building the > executable from your script. For example, you can use this to avoid > opening > a GUI window when compiling executables: > > app = MyApp.new > if not defined?(Ocra) > app.main_loop > end Hi David, I will write the above at the beginning of my script? after the require statements? or at the end? Thanks -- Posted via http://www.ruby-forum.com/.