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.


55
56
57
58
# File 'app/sequencescape_excel/sequencescape_excel/helpers/worksheet.rb', line 55

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

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.


53
54
55
# File 'app/sequencescape_excel/sequencescape_excel/helpers/worksheet.rb', line 53

def options
  @options
end

#referenceObject (readonly)

Returns the value of attribute reference.


53
54
55
# File 'app/sequencescape_excel/sequencescape_excel/helpers/worksheet.rb', line 53

def reference
  @reference
end