Sha256: 3f409cd6b7c2ae1a9b5090b1d52f066da4f4f522fdd44a718f6a216025454ff3
Contents?: true
Size: 297 Bytes
Versions: 1
Compression:
Stored size: 297 Bytes
Contents
module PivotTable class Column ACCESSORS = [:header, :data, :total] ACCESSORS.each do |a| self.send(:attr_accessor, a) end def initialize(options = {}) ACCESSORS.each do |a| self.send("#{a}=", options[a]) if options.has_key?(a) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pivot_table-0.1.1 | lib/pivot_table/column.rb |