Are you writing a new gem and you are not sure how to let user configure it? Here is a short gist to show you how to do it. I like this style of configurations, inspired by many already existing gems such as Devise, Airbrake, PDFkit and many more.
# Configuration
MyShinyGem.configure do |config|
config.binary = '/bin/ls'
config.username = 'superuser'