Class: Columnify::Worksheet
- Inherits:
-
Object
- Object
- Columnify::Worksheet
- Defined in:
- lib/columnify/worksheet.rb
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(resources, *args) ⇒ Worksheet
constructor
A new instance of Worksheet.
Constructor Details
#initialize(resources, *args) ⇒ Worksheet
Returns a new instance of Worksheet.
5 6 7 8 9 10 11 12 |
# File 'lib/columnify/worksheet.rb', line 5 def initialize(resources, *args) = args. @column_names = [:column_names].presence || args @attributes = args @resources = resources @buffer = StringIO.new @workbook = Spreadsheet::Workbook.new end |
Instance Method Details
#create ⇒ Object
14 15 16 17 18 19 |
# File 'lib/columnify/worksheet.rb', line 14 def create inject_column_names inject_data write_workbook_buffer read end |