class CsvShaperTemplate
CsvShaperTemplate
Rails view template class
Public Class Methods
Source
# File lib/csv_shaper_template.rb, line 6 def self.encode(context) new(context).tap { |shaper| yield shaper }.to_csv end
Expected ‘encode` call Instantiates a new CsvShaperTemplate
object and calls `to_csv` on it
Source
# File lib/csv_shaper_template.rb, line 10 def initialize(context) @context = context super() end
Calls superclass method
CsvShaper::Shaper::new