Sha256: b6eec6d463b8bb9905ad648b73c30b106d4feab4a3ef89c2bfcfb8467926095b

Contents?: true

Size: 194 Bytes

Versions: 3

Compression:

Stored size: 194 Bytes

Contents

module ValueStruct::Immutable
  def self.included(struct)
    struct.send(:undef_method, :"[]=")
    struct.members.each{ |member|
      struct.send(:undef_method, :"#{member}=")
    }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
value_struct-0.8.1 lib/value_struct/immutable.rb
value_struct-0.8.0 lib/value_struct/immutable.rb
value_struct-0.7.0 lib/value_struct/immutable.rb