Saturday, December 24, 2016

Note to Self about Modules in Ruby

Make sure to include the name of the module in the method:

module GameDictionary

  def GameDictionary.scene_enter()
    puts "This scene is not yet configured. Subclass it and implement enter()."
    exit(1)
  end

Everything else is rather straightforward, but for some reason I keep on missing that detail.  I'll just keep on drilling it until it sinks in.

In other words, I'll keep on crashing until I learn how to fly this damn aeroplane :)


No comments:

Post a Comment

1,050 hours

It took me 13 working days to complete my first 100 "work" pomodoros as a Junior Software Tester at Profectus Group.  Much of ...