class ParamsDeserializer::AttributeCollection

Public Instance Methods

<<(new_attr) click to toggle source
Calls superclass method
# File lib/params_deserializers/attribute_collection.rb, line 34
def <<(new_attr)
  if any? { |attr| attr.name == new_attr.name }
    raise NameCollisionError,
          "Attribute \"#{new_attr.name}\" was defined multiple times."
  end

  super
end
unignored() click to toggle source
# File lib/params_deserializers/attribute_collection.rb, line 43
def unignored
  reject(&:ignored)
end