When I want to run my .rb file on Terminal this comes up the whole time:
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- fox (LoadError)
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Possibly it's due to the wrong name. You cannot require
Fox
, since it is aModule
. In ruby you includeModules
.Good syntax:
If you wanna require something from Fox libraries, (what is highly recommended :D), you should require the
'fox16'
library.Here is a basic window program: