Sha256: 4669b69e92be8f856c54431bc5d60779ef001de8e26e095e78318ca3ad88aecd
Contents?: true
Size: 179 Bytes
Versions: 2
Compression:
Stored size: 179 Bytes
Contents
class FlexStruct # Wraps a FlexStruct initializer to freeze the struct instance after creation. module Frozen def initialize(*) super freeze end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flex_struct-0.1.2 | lib/flex_struct/frozen.rb |
flex_struct-0.1.1 | lib/flex_struct/frozen.rb |