class Dry::Struct::RepeatedAttributeError

Raised when defining duplicate attributes

Public Class Methods

new(key) click to toggle source

@param [Symbol] key

attribute name that is the same as previously defined one
Calls superclass method
# File lib/dry/struct/errors.rb, line 12
def initialize(key)
  super("Attribute :#{key} has already been defined")
end