Sha256: 62aa3cd595e7273d349d09a9fa622440e94d41f856a2f3c269afb14af4b62ca2
Contents?: true
Size: 389 Bytes
Versions: 3
Compression:
Stored size: 389 Bytes
Contents
# CsvShaperTemplate # Rails view template class class CsvShaperTemplate < CsvShaper::Shaper # Expected `encode` call # Instantiates a new CsvShaperTemplate object and calls `to_csv` on it def self.encode(context) new(context).tap { |shaper| yield shaper }.to_csv end def initialize(context) @context = context super() end def config @local_config end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
csv_shaper-1.3.2 | lib/csv_shaper_template.rb |
csv_shaper-1.3.1 | lib/csv_shaper_template.rb |
csv_shaper-1.3.0 | lib/csv_shaper_template.rb |