lib/clamp/attribute/instance.rb in clamp-1.0.1 vs lib/clamp/attribute/instance.rb in clamp-1.1.0
- old
+ new
@@ -61,10 +61,10 @@
end
def default_from_environment
return if self.defined?
return if attribute.environment_variable.nil?
- return unless ENV.has_key?(attribute.environment_variable)
+ 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