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.



80
81
82
83
# File 'app/sequencescape_excel/sequencescape_excel/helpers/worksheet.rb', line 80

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

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



78
79
80
# File 'app/sequencescape_excel/sequencescape_excel/helpers/worksheet.rb', line 78

def options
  @options
end

#referenceObject (readonly)

Returns the value of attribute reference.



78
79
80
# File 'app/sequencescape_excel/sequencescape_excel/helpers/worksheet.rb', line 78

def reference
  @reference
end