Friday, August 12, 2011

require that is compatible with ruby 1.8.x and 1.9.x

require File.expand_path(File.join(File.dirname(__FILE__), 'player'))

This makes : require 'player' work on both Ruby 1.8.x and 1.9.x