globals/require/test.rb
tests/_examples/globals/require/test.rb in the metorex repository.
$:.unshift File.expand_path("..", __FILE__)
require "lib"
puts GREETING
Output:
hello from lib
tests/_examples/globals/require/test.rb in the metorex repository.
$:.unshift File.expand_path("..", __FILE__)
require "lib"
puts GREETING
Output:
hello from lib