#my ruby environment variable in .bashrcRUBYLIB=/Users/m.hansen/biopieces/code_ruby
#path to test module/class/Users/m.hansen/biopieces/code_ruby/Maasha/test.rb#content of /Users/m.hansen/biopieces/code_ruby/Maasha/test.rbclassTest
puts "Modules Test loaded"defgreet_world
puts "Hello World"endend#path to test script~/test.rb# content of test scriptrequire 'Maasha/test'foo = Test.newfoo.greet_worldputs "end"exit#output ruby test.rb Modules Test loadedHello Worldend