Ruby-beginners challenges
This is a great way to progressively learn Ruby by solving small problems.
Important websites:
- https://www.tutorialspoint.com/ruby/
- https://www.ruby-lang.org
- http://www.ruby-doc.org/
- http://www.rubydoc.info/
- https://en.wikibooks.org/wiki/Ruby_Programming
- init.rb is the main entry to the application
- \lib contains the code logic
- Each module is in a separate folder using snake-case convention
- Each class is in a .rb file
- To assemble code:
- require absolute path
- require "#{__dir__}/deep_space/spaceship"
- require_relative 'deep_space/spaceship'
- require absolute path
- Gems are available from - rubygems.org
- www.ruby-toolbox.com is a good directory for gems
- Basic terminal command:
- gem list => list installed gems
- gem search -r xxx => search for xxx gem remotely
- gem install xx => install gem xxx
- gem uninstall xx => uninstall
- bundler is dependency management package, and is a gem itself
- Once a Gemfile is available in a project, bundle install command will install all the required gems
- Testing