module Commontator class CommontableConfig Commontator::COMMONTABLE_ATTRIBUTES.each do |attribute| cattr_accessor attribute end def initialize(options = {}) Commontator::COMMONTABLE_CONFIG.keys.each do |attribute| self.send attribute.to_s + '=', options[attribute] || Commontator.send(attribute) end end end end