francomac / ruby-sandbox

several Ruby examples

Repository from Github https://github.comfrancomac/ruby-sandboxRepository from Github https://github.comfrancomac/ruby-sandbox

ruby-sandbox

several Ruby examples

* To install Ruby

  1. using your terminal.

  2. install brew from brew.sh.

  3. install rbenv using brew. with this: brew install rbenv.

  4. install last stable ruby version using rbenv. with this: rbenv install 3.1.0.

  5. set your ruby version to use with rbenv global your_version_just_installed.

  6. check your versions installed with rbenv versions. yours should be selected with an * as first character.

  7. check your version in place with ruby -v.

  8. be sure you dont have rvm installed. if this is the case uninstall it with these steps:

    • rvm implode or rm -rf ~/.rvm
    • And don’t forget to remove the script calls in the following files:
    1. ~/.bashrc
    2. ~/.bash_profile
    3. ~/.profile

* To run code from each file

  1. from your terminal open irb
  2. then type: ruby file_name.rb

About

several Ruby examples


Languages

Language:Ruby 100.0%