lib/zunnit/utils.rb in zunnit-0.0.4 vs lib/zunnit/utils.rb in zunnit-0.1.0

- old
+ new

@@ -1,15 +1,17 @@ -module Zunnit::Utils - def mattr_accessor *attrs - attrs.each do |attr| - module_eval %[ +module Zunnit + module Utils + def mattr_accessor *attrs + attrs.each do |attr| + module_eval %[ def self.#{attr.to_s}=(value) @#{attr.to_s} = value end def self.#{attr.to_s} @#{attr.to_s} end - ] + ] + end end end end \ No newline at end of file