lib/koine/attributes/adapter/base.rb in koine-attributes-1.2.3 vs lib/koine/attributes/adapter/base.rb in koine-attributes-1.2.4
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Koine
module Attributes
module Adapter
class Base
attr_reader :attribute_name
@@ -63,11 +65,11 @@
value.freeze
end
def wrap_errors
yield
- rescue StandardError => error
- raise_error(error)
+ rescue StandardError => exception
+ raise_error(exception)
end
def raise_error(message)
raise Koine::Attributes::InvalidAttributeError.new(message, attribute_name)
end