# File lib/clamp/attribute/instance.rb, line 69 def default_from_environment return if self.defined? return if attribute.environment_variable.nil? return unless ENV.key?(attribute.environment_variable) # Set the parameter value if it's environment variable is present value = ENV[attribute.environment_variable] begin take(value) rescue ArgumentError => e signal_usage_error Clamp.message(:env_argument_error, env: attribute.environment_variable, message: e.message) end end