Sha256: f08390f214d85477346981c4709be3fcaeb9d516875bad08bdc1ba4d855b3c57
Contents?: true
Size: 236 Bytes
Versions: 1
Compression:
Stored size: 236 Bytes
Contents
class Class def kattr_writer(*syms) syms.each do |sym| self.class.send(:define_method, :"#{sym}=") do |opt| class_variable_set("@@#{sym}", opt) end end end alias_method :cattr_writer, :kattr_writer end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kattr-0.0.1 | lib/kattr/writer.rb |