diff options
| author | Randy Morgan <[email protected]> | 2012-10-09 21:50:25 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-10-09 21:50:25 +0900 |
| commit | be95b7eaa72cd7007bc0fef22d0c3ea4fa3c3553 (patch) | |
| tree | 4553f0ec8767385961e08162ebfa65eb96c77420 /lib/axlsx/workbook | |
| parent | f0bc5f17ddafd8172646a04bbbc0d3b958c0205f (diff) | |
| download | caxlsx-be95b7eaa72cd7007bc0fef22d0c3ea4fa3c3553.tar.gz caxlsx-be95b7eaa72cd7007bc0fef22d0c3ea4fa3c3553.zip | |
extracted accessor methods into module that is scope because polluting Module or Class is just not cool
Diffstat (limited to 'lib/axlsx/workbook')
| -rw-r--r-- | lib/axlsx/workbook/defined_name.rb | 3 | ||||
| -rw-r--r-- | lib/axlsx/workbook/worksheet/sheet_pr.rb | 3 | ||||
| -rw-r--r-- | lib/axlsx/workbook/worksheet/table_style_info.rb | 1 | ||||
| -rw-r--r-- | lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb | 1 |
4 files changed, 7 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/defined_name.rb b/lib/axlsx/workbook/defined_name.rb index 81265280..8a1f57d4 100644 --- a/lib/axlsx/workbook/defined_name.rb +++ b/lib/axlsx/workbook/defined_name.rb @@ -49,6 +49,9 @@ module Axlsx # @example # For clarification: LOG10 is always a cell reference, LOG10() is always formula, LOGO1000 can be a defined name that overrides a cell reference. class DefinedName + + + include Axlsx::Accessors # creates a new DefinedName. # @param [String] formula - the formula the defined name references # @param [Hash] options - A hash of key/value pairs that will be mapped to this instances attributes. diff --git a/lib/axlsx/workbook/worksheet/sheet_pr.rb b/lib/axlsx/workbook/worksheet/sheet_pr.rb index 94b33f5e..79e10ca0 100644 --- a/lib/axlsx/workbook/worksheet/sheet_pr.rb +++ b/lib/axlsx/workbook/worksheet/sheet_pr.rb @@ -2,7 +2,8 @@ module Axlsx # The SheetPr class manages serialization fo a worksheet's sheetPr element. class SheetPr - + + include Axlsx::Accessors # These attributes are all boolean so I'm doing a bit of a hand # waving magic show to set up the attriubte accessors diff --git a/lib/axlsx/workbook/worksheet/table_style_info.rb b/lib/axlsx/workbook/worksheet/table_style_info.rb index 82320b56..a9e3d8b7 100644 --- a/lib/axlsx/workbook/worksheet/table_style_info.rb +++ b/lib/axlsx/workbook/worksheet/table_style_info.rb @@ -4,6 +4,7 @@ module Axlsx # a worksheet class TableStyleInfo + include Axlsx::Accessors # creates a new TableStyleInfo instance # @param [Hash] options # @option [Boolean] show_first_column indicates if the first column should diff --git a/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb b/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb index 73f769ce..71bb0a51 100644 --- a/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb +++ b/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb @@ -3,6 +3,7 @@ module Axlsx # A worksheet hyperlink object. Note that this is not the same as a drawing hyperlink object. class WorksheetHyperlink + include Axlsx::Accessors # Creates a new hyperlink object. # @note the preferred way to add hyperlinks to your worksheet is the Worksheet#add_hyperlink method # @param [Worksheet] worksheet the Worksheet that owns this hyperlink |
