I have two .rb files in the same directory
samplecode.rb
otherclass.rb
here is the contents of SampleCode
require 'otherclass'
include OtherClass
class SampleCode
#...
end
and here is the contents of OtherClass
require 'samplecode'
class OtherClass
#...
end
when I run "ruby otherclass.rb" I get the following error:
I can't figure out what's going wrong, because these two files are definitely in the same directory. What gives?