For example, in the code snippets in the Fog gem, e.g.
require 'rubygems'
require 'fog'
# create a connection to the service
dns = Fog::DNS.new({
:provider => 'Zerigo',
:zerigo_email => ZERIGO_EMAIL,
:zerigo_token => ZERIGO_TOKEN
})
zone = @dns.zones.create(
:domain => 'example.com',
:email => '[email protected]'
)
Why dns is not instance variable at the first place, but then become an instance variable in the next paragraph? Why zone is not instance variable?