Sha256: 7c1818e964e69f146cd1afc15b439c464ba9fef09c34d8fe9a40c8346af6643c

Contents?: true

Size: 233 Bytes

Versions: 1

Compression:

Stored size: 233 Bytes

Contents

module Zunnit::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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zunnit-0.0.4 lib/zunnit/utils.rb