I'm building a web app in Sinatra and I have a bunch of files in /lib/checkers/
I'm currently requiring them by doing this:
require File.expand_path(File.dirname(__FILE__) + '/lib/checkers/board.rb')
require File.expand_path(File.dirname(__FILE__) + '/lib/checkers/checker.rb')
which seems dumb but I have tried
require '/lib/checkers'
or
require '/lib/checkers/'
or
require File.expand_path(File.dirname(__FILE__) + 'lib/checkers/')
and other variants along the same them but nothing seems to work. Can you help?