I would like to know exactly how this snippets work in Ruby script.
gem ‘mechanize’, ‘=1.0.0’
require File.dirname(FILE) + “/logo.rb”
I can guess the lines (2~4) will require external ruby files.
But the first line that is using “gem” is horrible thing to me.
When this ruby file gets executed, ‘mechanize’ gem would be installed?
Or you will have to install that gem beforehand?
I would very appreciate if you can explain further details.
Thanks in advance,