Sha256: 9c5475707b5d673710a8a4bef0507e0cca7cf17f701826ab0f2fda38f09e351e
Contents?: true
Size: 283 Bytes
Versions: 1
Compression:
Stored size: 283 Bytes
Contents
require "private_struct/version" module PrivateStruct def self.new(*attributes, &block) struct = Struct.new(*attributes, &block) struct.instance_eval do attributes.each do |attribite| private attribite, "#{attribite}=" end end struct end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
private_struct-0.1.0 | lib/private_struct.rb |