Class: SpreadsheetX::CellFormat
- Inherits:
-
Object
- Object
- SpreadsheetX::CellFormat
- Defined in:
- lib/spreadsheetx/cell_format.rb
Overview
this object represents an existing cell format in the workbook
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id, format) ⇒ CellFormat
constructor
A new instance of CellFormat.
- #to_s ⇒ Object
Constructor Details
#initialize(id, format) ⇒ CellFormat
Returns a new instance of CellFormat.
9 10 11 12 |
# File 'lib/spreadsheetx/cell_format.rb', line 9 def initialize(id, format) @id = id @format = format end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
7 8 9 |
# File 'lib/spreadsheetx/cell_format.rb', line 7 def format @format end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/spreadsheetx/cell_format.rb', line 6 def id @id end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/spreadsheetx/cell_format.rb', line 14 def to_s id.to_s end |