diff options
| author | Randy Morgan <[email protected]> | 2012-07-10 20:27:42 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-07-10 20:27:42 +0900 |
| commit | e82f217d5d94d5e07c195323b61f9e3195ac6634 (patch) | |
| tree | 1cfccdba9f632722ee3464742ee5083923845e44 /lib/axlsx/drawing/ax_data_source.rb | |
| parent | 8f0e868940fe7fd56e2c43e2b1102ec1d3e58a0e (diff) | |
| download | caxlsx-e82f217d5d94d5e07c195323b61f9e3195ac6634.tar.gz caxlsx-e82f217d5d94d5e07c195323b61f9e3195ac6634.zip | |
more cleanup
Diffstat (limited to 'lib/axlsx/drawing/ax_data_source.rb')
| -rw-r--r-- | lib/axlsx/drawing/ax_data_source.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/axlsx/drawing/ax_data_source.rb b/lib/axlsx/drawing/ax_data_source.rb index 5bbfd55b..ebbfe2cd 100644 --- a/lib/axlsx/drawing/ax_data_source.rb +++ b/lib/axlsx/drawing/ax_data_source.rb @@ -1,14 +1,9 @@ module Axlsx + # An axis data source that can contain referenced or literal strings or numbers # @note only string data types are supported - mainly because we have not implemented a chart type that requires a numerical axis value class AxDataSource < NumDataSource - # allowed element tag names - # @return [Array] - def self.allowed_tag_names - [:xVal, :cat] - end - # creates a new NumDataSource object # @option options [Array] data An array of Cells or Numeric objects # @option options [Symbol] tag_name see tag_name @@ -19,6 +14,12 @@ module Axlsx super(options) end + # allowed element tag names for serialization + # @return [Array] + def self.allowed_tag_names + [:xVal, :cat] + end + end end |
