E
Eko Budi Setiyo
Hi everybody
#file1.rb
#Location: /home/eko
puts Dir.pwd
require 'directory1/file2.rb
#file2.rb
#Location: /home/eko/directory1
puts Dir.pwd
if I run "ruby file1.rb
will produce:
"/home/eko"
"/home/eko"
What comand that I should you in file2.rb that will "automatically"
produce result
"/home/eko"
"/home/eko/directory1/file2.rb"
regards
Eko
#file1.rb
#Location: /home/eko
puts Dir.pwd
require 'directory1/file2.rb
#file2.rb
#Location: /home/eko/directory1
puts Dir.pwd
if I run "ruby file1.rb
will produce:
"/home/eko"
"/home/eko"
What comand that I should you in file2.rb that will "automatically"
produce result
"/home/eko"
"/home/eko/directory1/file2.rb"
regards
Eko