Class: Decisive::XLSWithWorksheetsContext
- Inherits:
-
Struct
- Object
- Struct
- Decisive::XLSWithWorksheetsContext
- Defined in:
- lib/decisive/template_handler.rb
Defined Under Namespace
Classes: Worksheet
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#worksheets ⇒ Object
Returns the value of attribute worksheets.
Instance Method Summary collapse
- #csv? ⇒ Boolean
-
#initialize(*args, &block) ⇒ XLSWithWorksheetsContext
constructor
A new instance of XLSWithWorksheetsContext.
- #to_xls ⇒ Object
Constructor Details
#initialize(*args, &block) ⇒ XLSWithWorksheetsContext
Returns a new instance of XLSWithWorksheetsContext.
79 80 81 82 |
# File 'lib/decisive/template_handler.rb', line 79 def initialize *args, &block super instance_eval &block end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename
76 77 78 |
# File 'lib/decisive/template_handler.rb', line 76 def filename @filename end |
#worksheets ⇒ Object
Returns the value of attribute worksheets
76 77 78 |
# File 'lib/decisive/template_handler.rb', line 76 def worksheets @worksheets end |
Instance Method Details
#csv? ⇒ Boolean
88 89 90 |
# File 'lib/decisive/template_handler.rb', line 88 def csv? false end |
#to_xls ⇒ Object
84 85 86 |
# File 'lib/decisive/template_handler.rb', line 84 def to_xls to_string(render(Spreadsheet::Workbook.new)) end |