Skip to content

mojitocoder/ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby

Ruby-beginners challenges

This is a great way to progressively learn Ruby by solving small problems.

Notes

Important websites:

  1. init.rb is the main entry to the application
  2. \lib contains the code logic
    • Each module is in a separate folder using snake-case convention
    • Each class is in a .rb file
  3. To assemble code:
    • require absolute path
      • require "#{__dir__}/deep_space/spaceship"
    • require_relative 'deep_space/spaceship'
  4. Gems are available from - rubygems.org
  5. 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
  6. Testing

About

Ruby-beginners challenges

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%