Class: Decisive::XLSContext

Inherits:
Struct
  • Object
show all
Defined in:
lib/decisive/template_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



136
137
138
# File 'lib/decisive/template_handler.rb', line 136

def block
  @block
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



136
137
138
# File 'lib/decisive/template_handler.rb', line 136

def filename
  @filename
end

#worksheetsObject

Returns the value of attribute worksheets

Returns:

  • (Object)

    the current value of worksheets



136
137
138
# File 'lib/decisive/template_handler.rb', line 136

def worksheets
  @worksheets
end

Instance Method Details

#csv?Boolean

Returns:

  • (Boolean)


141
142
143
# File 'lib/decisive/template_handler.rb', line 141

def csv?
  false
end

#to_xlsObject



137
138
139
# File 'lib/decisive/template_handler.rb', line 137

def to_xls
  to_string(render(Spreadsheet::Workbook.new))
end