Hi, Im currently working on a project for my first course in Ruby. A part of the assignment is to have a main class as the one below. I have it in a separate file and the other modules and classes are in separate files. Now Im getting an uninitialized constant Main::Camping (NameError) which I dont get. Any clues to why?! Thanks
Regards
class Main
if __FILE__ == $0
$camping = Camping.new(32, 12) #creates a new camping
include Menus
$current_menu = main_menu
# loops through the menu
while (true)
puts $current_menu
choice = Menus.get_input
$current_menu.make_menu_choice(choice)
end
end
end