class Reports::OfflineExporter::CachedStyles
Attributes
Public Class Methods
Source
# File app/lib/reports/offline_exporter.rb, line 530 def initialize(workbook) @workbook = workbook @cache = {} end
Public Instance Methods
Source
# File app/lib/reports/offline_exporter.rb, line 535 def find_or_create(attributes) @cache[attributes] ||= workbook.styles.add_style(attributes) end