module ValueStruct::Immutable

Public Class Methods

included(struct) click to toggle source
# File lib/value_struct/immutable.rb, line 2
def self.included(struct)
  struct.send(:undef_method, :"[]=")
  struct.members.each{ |member|
    struct.send(:undef_method, :"#{member}=")
  }
end