Overview
The scanf gem is no longer a bundled gem that comes with Ruby Installation. It has to be specifically installed. Simply add the below line to your Gemfile and then do ‘bundle’
gem 'scanf'
or run
gem install scanf
Note: Check out our system design tutorial series System Design Questions