How many files named vsynth.rb do you have in the current directory?
Try creating these two files in the same directory:
#my_classes.rb:
require ‘singleton’
class Dog
include Singleton
def bark
puts ‘hi’
end
end
=====
#my_prog.rb
require ‘./my_classes’
Dog.instance.bark
Then try running my_prog.rb with the prompt pointing to the directory
containing those two files. If you get that to work, change the name of
your file from vsynth.rb to my_vsynth.rb and then change the require to:
require ‘./my_vsynth’
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.