lib/roda/endpoints/endpoint.rb in roda-endpoints-0.2.0 vs lib/roda/endpoints/endpoint.rb in roda-endpoints-0.3.0

- old
+ new

@@ -33,10 +33,10 @@ self.verbs = EMPTY_SET # @param attributes [{Symbol=>Object}] def initialize(**attributes) self.class.defaults.merge(attributes).each do |key, value| - # singleton_class.define_attribute(key) unless known_attribute?(key) + singleton_class.define_attribute(key) unless respond_to?(key) instance_variable_set(:"@#{key}", value) end end prepend Namespace