Module: SingleXLSX::Writing
- Included in:
- SingleXLSX
- Defined in:
- lib/single_xlsx/writing.rb
Instance Method Summary collapse
Instance Method Details
#generate(&block) ⇒ Object
5 6 7 |
# File 'lib/single_xlsx/writing.rb', line 5 def generate(&block) create_book(&block).stream.read end |
#open(path, &block) ⇒ Object
9 10 11 |
# File 'lib/single_xlsx/writing.rb', line 9 def open(path, &block) create_book(&block).write(path) end |