Method: Compass::Installers::Base#configure_option_with_default

Defined in:
lib/compass/installers/base.rb

#configure_option_with_default(opt) ⇒ Object



59
60
61
62
63
64
65
66
# File 'lib/compass/installers/base.rb', line 59

def configure_option_with_default(opt)
  value = options[opt]
  value ||= begin
    default_method = "default_#{opt}".to_sym
    send(default_method) if respond_to?(default_method)
  end
  send("#{opt}=", value)
end