MΓ³dulo 04 Β· Idioms, Errors & Gems β LecciΓ³n 5 de 6 Β· ~11 min
Gems & Bundler
What's a gem?
A gem is Ruby's unit of shared, packaged code β same role as an npm package or a Python wheel. Anyone can publish one; rails itself is a gem, and it depends on dozens more underneath it. Install one manually with gem install some_gem, then load it in code with require "some_gem" β you've already done this with require "json", which happens to ship in Ruby's standard library and needs no separate install.