Sha256: 4051f424ac1e3f546acece8ae1e437af8650e232b5cb2d389ebc0b69ab55bed0
Contents?: true
Size: 370 Bytes
Versions: 4
Compression:
Stored size: 370 Bytes
Contents
module Commontator class CommontatorConfig Commontator::COMMONTATOR_ATTRIBUTES.keys.each do |attribute| cattr_accessor attribute end def initialize(options = {}) Commontator::COMMONTATOR_ATTRIBUTES.keys.each do |attribute| self.send attribute.to_s + '=', options[attribute] || Commontator.send(attribute) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems