From: camenix Date: 2006-10-29T14:15:11+09:00 Subject: Re: how to import variable from other .rb file? The method load variable from other file list below: Ruby didn't has import method | |-use global variable :Jan Svitok |-use local variable | |- eval File.read('config.rb') :Jan Svitok | | \--tool_mysql='' (add code beforehand) :Robert Klemme | \- puts config = YAML.load_file('config.yaml') :Jan Svitok | |- yaml's syntax is diff from ruby : | \- It is designed for this =My choice |-use constants :Jan Svitok \-use script module \--if really want to use ruby syntax in config.rb :Joel VanderWerf \--Add module import capabily ,It's toomuch for me:-)