module Virtus::ValueObject::AllowedWriterMethods

Public Instance Methods

allowed_writer_methods() click to toggle source

The list of writer methods that can be mass-assigned to in attributes=

@return [Set]

@api private

Calls superclass method
# File lib/virtus/value_object.rb, line 89
def allowed_writer_methods
  @allowed_writer_methods ||=
    begin
      allowed_writer_methods = super
      allowed_writer_methods += attribute_set.map{|attr| "#{attr.name}="}
      allowed_writer_methods.to_set.freeze
    end
end