Try this structure:
################ app/main.rbrequire 'app/init.rb'require 'app/tick.rb'################ app/init.rbColor = [100,100,100]module Init def fun puts "sup" endend################ app/tick.rbclass Game include Init end$game = Game.newputs Color def tick puts Color $game.fun end