Sha256: b4e29a55d31bac85e77b7b8ae242072d6a36a6299fe546e8d835c07ae8bb5182
Contents?: true
Size: 270 Bytes
Versions: 2
Compression:
Stored size: 270 Bytes
Contents
module ValueStruct::Core def inspect super.to_s.sub('struct', 'ValueStruct') end def self.included(struct) struct.send(:undef_method, "[]=".to_sym) struct.members.each do |member| struct.send(:undef_method, "#{member}=".to_sym) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
value_struct-0.6.0 | lib/value_struct/core.rb |
value_struct-0.5.0 | lib/value_struct/core.rb |