Note to Self about Modules in Ruby
Make sure to include the name of the module in the method:
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 :)
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 :)
Published on 24 Dec 2016
by Alexander Garber
all tags
100daysofcode activerecord android annoyances api apt arch array artix atom az3w backend bash blog browser bug callback career ci-cd cli cloud code coding config configuration cp crud cryptography css csv database db design devops django docker email erp feelsgood filter fugitive gif gist git gnome gnome pomodoro grep hebrew http ide isbn-fetcher iso javascript job search js kanban kindle koans learning linkedin linux logger manjaro map markdown microservices mobi mtp neovim nodejs nvchad packages panda pastbin patch portfolio post postgres pytest python rails reduce refactoring reflections rest routes rspec ruby salesforce script scripting security sed shell sql string_replacement study tdd terminal testing tmux ttd version_control vim vim sort walkthrough webdev workflow zsh