Skip to content

Latest commit

 

History

History
88 lines (62 loc) · 2.98 KB

ruby.md

File metadata and controls

88 lines (62 loc) · 2.98 KB

Ruby

Books

Articles and blogs

Newsletters

  • Ruby Weekly - A free, once–weekly e-mail round-up of Ruby news and articles

Getting started

Install Ruby on macOS

brew install chruby
brew install ruby-install
ruby-install ruby
# >>> Successfully installed ruby 3.0.3 into ${HOME}/.rubies/ruby-3.0.3

chruby 3.0.3
echo ruby-3.0.3 > .ruby-version

Gems - Frameworks and libraries

Name Description
chruby Changes the current Ruby
rubocop Static code analyzer and formatter
ruby-install Installs Ruby, JRuby, Rubinius, TruffleRuby or MRuby
shadowenv reversible directory-local environment variable manipulations
sorbet fast, powerful type checker designed for Ruby

IDEs

Rubymine

Visual Studio Code

Testing

Gems and bundler - package managment and dependencies

# Update one package
bundle lock --update=packwerk

# Remove all unused gems in your bundler directory.
bundle clean --force

Debugging

$ pry
> Foo.instance_method(:method_symbol).source.display