Class: SequencescapeExcel::Helpers::Worksheet::Style

Inherits:
Object
  • Object
show all
Defined in:
app/sequencescape_excel/sequencescape_excel/helpers/worksheet.rb

Overview

Style

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workbook, options) ⇒ Style

Returns a new instance of Style


38
39
40
41
# File 'app/sequencescape_excel/sequencescape_excel/helpers/worksheet.rb', line 38

def initialize(workbook, options)
  @options = options
  @reference = workbook.styles.add_style options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options


36
37
38
# File 'app/sequencescape_excel/sequencescape_excel/helpers/worksheet.rb', line 36

def options
  @options
end

#referenceObject (readonly)

Returns the value of attribute reference


36
37
38
# File 'app/sequencescape_excel/sequencescape_excel/helpers/worksheet.rb', line 36

def reference
  @reference
end