summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-08 00:12:18 +0200
committerGeremia Taglialatela <[email protected]>2023-04-08 00:12:18 +0200
commit5d68145521afe5c5912ceebae2f7e784eb5f8954 (patch)
tree5289c654cb213de98a6c812fbe581e2609f6615a /lib
parent7f077b55bf963c6e855c6c9066c6aed4926fb8e3 (diff)
downloadcaxlsx-5d68145521afe5c5912ceebae2f7e784eb5f8954.tar.gz
caxlsx-5d68145521afe5c5912ceebae2f7e784eb5f8954.zip
Fix EmptyLines related offenses
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/content_type/abstract_content_type.rb3
-rw-r--r--lib/axlsx/content_type/content_type.rb3
-rw-r--r--lib/axlsx/content_type/default.rb3
-rw-r--r--lib/axlsx/content_type/override.rb2
-rw-r--r--lib/axlsx/doc_props/app.rb4
-rw-r--r--lib/axlsx/doc_props/core.rb4
-rw-r--r--lib/axlsx/drawing/area_chart.rb2
-rw-r--r--lib/axlsx/drawing/area_series.rb2
-rw-r--r--lib/axlsx/drawing/ax_data_source.rb4
-rw-r--r--lib/axlsx/drawing/axes.rb2
-rw-r--r--lib/axlsx/drawing/axis.rb4
-rw-r--r--lib/axlsx/drawing/bar_3D_chart.rb2
-rw-r--r--lib/axlsx/drawing/bar_chart.rb2
-rw-r--r--lib/axlsx/drawing/bar_series.rb3
-rw-r--r--lib/axlsx/drawing/bubble_chart.rb2
-rw-r--r--lib/axlsx/drawing/bubble_series.rb2
-rw-r--r--lib/axlsx/drawing/cat_axis.rb3
-rw-r--r--lib/axlsx/drawing/chart.rb4
-rw-r--r--lib/axlsx/drawing/d_lbls.rb2
-rw-r--r--lib/axlsx/drawing/drawing.rb2
-rw-r--r--lib/axlsx/drawing/graphic_frame.rb2
-rw-r--r--lib/axlsx/drawing/hyperlink.rb2
-rw-r--r--lib/axlsx/drawing/line_3D_chart.rb2
-rw-r--r--lib/axlsx/drawing/line_chart.rb2
-rw-r--r--lib/axlsx/drawing/line_series.rb2
-rw-r--r--lib/axlsx/drawing/marker.rb3
-rw-r--r--lib/axlsx/drawing/num_data.rb4
-rw-r--r--lib/axlsx/drawing/num_data_source.rb2
-rw-r--r--lib/axlsx/drawing/num_val.rb2
-rw-r--r--lib/axlsx/drawing/one_cell_anchor.rb2
-rw-r--r--lib/axlsx/drawing/pic.rb1
-rw-r--r--lib/axlsx/drawing/picture_locking.rb2
-rw-r--r--lib/axlsx/drawing/pie_3D_chart.rb3
-rw-r--r--lib/axlsx/drawing/pie_series.rb4
-rw-r--r--lib/axlsx/drawing/scaling.rb2
-rw-r--r--lib/axlsx/drawing/scatter_chart.rb2
-rw-r--r--lib/axlsx/drawing/scatter_series.rb2
-rw-r--r--lib/axlsx/drawing/ser_axis.rb2
-rw-r--r--lib/axlsx/drawing/series.rb1
-rw-r--r--lib/axlsx/drawing/series_title.rb1
-rw-r--r--lib/axlsx/drawing/str_data.rb4
-rw-r--r--lib/axlsx/drawing/str_val.rb2
-rw-r--r--lib/axlsx/drawing/title.rb2
-rw-r--r--lib/axlsx/drawing/two_cell_anchor.rb1
-rw-r--r--lib/axlsx/drawing/val_axis.rb2
-rw-r--r--lib/axlsx/drawing/view_3D.rb1
-rw-r--r--lib/axlsx/drawing/vml_drawing.rb4
-rw-r--r--lib/axlsx/drawing/vml_shape.rb3
-rw-r--r--lib/axlsx/rels/relationship.rb2
-rw-r--r--lib/axlsx/rels/relationships.rb2
-rw-r--r--lib/axlsx/stylesheet/border.rb2
-rw-r--r--lib/axlsx/stylesheet/border_pr.rb1
-rw-r--r--lib/axlsx/stylesheet/cell_alignment.rb3
-rw-r--r--lib/axlsx/stylesheet/cell_protection.rb2
-rw-r--r--lib/axlsx/stylesheet/cell_style.rb3
-rw-r--r--lib/axlsx/stylesheet/color.rb1
-rw-r--r--lib/axlsx/stylesheet/dxf.rb3
-rw-r--r--lib/axlsx/stylesheet/fill.rb2
-rw-r--r--lib/axlsx/stylesheet/gradient_fill.rb1
-rw-r--r--lib/axlsx/stylesheet/num_fmt.rb2
-rw-r--r--lib/axlsx/stylesheet/pattern_fill.rb1
-rw-r--r--lib/axlsx/stylesheet/table_style.rb2
-rw-r--r--lib/axlsx/stylesheet/table_style_element.rb2
-rw-r--r--lib/axlsx/stylesheet/table_styles.rb3
-rw-r--r--lib/axlsx/stylesheet/xf.rb1
-rw-r--r--lib/axlsx/util/accessors.rb1
-rw-r--r--lib/axlsx/util/constants.rb1
-rw-r--r--lib/axlsx/util/options_parser.rb1
-rw-r--r--lib/axlsx/util/serialized_attributes.rb2
-rw-r--r--lib/axlsx/util/simple_typed_list.rb3
-rw-r--r--lib/axlsx/util/storage.rb3
-rw-r--r--lib/axlsx/util/zip_command.rb1
-rw-r--r--lib/axlsx/version.rb1
-rw-r--r--lib/axlsx/workbook/defined_names.rb1
-rw-r--r--lib/axlsx/workbook/shared_strings_table.rb2
-rw-r--r--lib/axlsx/workbook/workbook.rb2
-rw-r--r--lib/axlsx/workbook/workbook_view.rb2
-rw-r--r--lib/axlsx/workbook/workbook_views.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/auto_filter/auto_filter.rb3
-rw-r--r--lib/axlsx/workbook/worksheet/auto_filter/filter_column.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/auto_filter/filters.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/border_creator.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/break.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/cell.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/cell_serializer.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/cfvo.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/cfvos.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/col.rb3
-rw-r--r--lib/axlsx/workbook/worksheet/col_breaks.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/color_scale.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/cols.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/comment.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/comments.rb5
-rw-r--r--lib/axlsx/workbook/worksheet/conditional_formatting.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/conditional_formatting_rule.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/conditional_formattings.rb3
-rw-r--r--lib/axlsx/workbook/worksheet/data_bar.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/data_validations.rb3
-rw-r--r--lib/axlsx/workbook/worksheet/date_time_converter.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/dimension.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/header_footer.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/icon_set.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/merged_cells.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/outline_pr.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/page_margins.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/page_set_up_pr.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/page_setup.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/pane.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/pivot_table.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/pivot_table_cache_definition.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/pivot_tables.rb3
-rw-r--r--lib/axlsx/workbook/worksheet/print_options.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/protected_range.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/protected_ranges.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/rich_text.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/rich_text_run.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/row.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/row_breaks.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/selection.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/sheet_calc_pr.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/sheet_data.rb3
-rw-r--r--lib/axlsx/workbook/worksheet/sheet_format_pr.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/sheet_pr.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/sheet_protection.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/sheet_view.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/table.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/table_style_info.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/tables.rb3
-rw-r--r--lib/axlsx/workbook/worksheet/worksheet.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/worksheet_comments.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/worksheet_drawing.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/worksheet_hyperlinks.rb2
133 files changed, 0 insertions, 267 deletions
diff --git a/lib/axlsx/content_type/abstract_content_type.rb b/lib/axlsx/content_type/abstract_content_type.rb
index 82a659dd..73d8a678 100644
--- a/lib/axlsx/content_type/abstract_content_type.rb
+++ b/lib/axlsx/content_type/abstract_content_type.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# This class extracts the common parts from Default and Override
class AbstractContentType
-
include Axlsx::OptionsParser
# Initializes an abstract content type
@@ -27,6 +25,5 @@ module Axlsx
str << Axlsx.instance_values_for(self).map { |key, value| Axlsx::camel(key) << '="' << value.to_s << '"' }.join(' ')
str << '/>'
end
-
end
end
diff --git a/lib/axlsx/content_type/content_type.rb b/lib/axlsx/content_type/content_type.rb
index e6dfdee5..48b5b6a9 100644
--- a/lib/axlsx/content_type/content_type.rb
+++ b/lib/axlsx/content_type/content_type.rb
@@ -5,7 +5,6 @@ module Axlsx
# ContentTypes used in the package. This is automatically managed by the package package.
class ContentType < SimpleTypedList
-
def initialize
super [Override, Default]
end
@@ -19,7 +18,5 @@ module Axlsx
each { |type| type.to_xml_string(str) }
str << '</Types>'
end
-
end
-
end
diff --git a/lib/axlsx/content_type/default.rb b/lib/axlsx/content_type/default.rb
index be3a7c04..691b7e87 100644
--- a/lib/axlsx/content_type/default.rb
+++ b/lib/axlsx/content_type/default.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# An default content part. These parts are automatically created by for you based on the content of your package.
class Default < AbstractContentType
-
# The serialization node name for this class
NODE_NAME = 'Default'
@@ -20,5 +18,4 @@ module Axlsx
super(NODE_NAME, str)
end
end
-
end
diff --git a/lib/axlsx/content_type/override.rb b/lib/axlsx/content_type/override.rb
index 39303e80..5fb98d4c 100644
--- a/lib/axlsx/content_type/override.rb
+++ b/lib/axlsx/content_type/override.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# An override content part. These parts are automatically created by for you based on the content of your package.
class Override < AbstractContentType
-
# Serialization node name for this object
NODE_NAME = 'Override'
diff --git a/lib/axlsx/doc_props/app.rb b/lib/axlsx/doc_props/app.rb
index 64a193cf..ed46cf56 100644
--- a/lib/axlsx/doc_props/app.rb
+++ b/lib/axlsx/doc_props/app.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# App represents the app.xml document. The attributes for this object are primarily managed by the application the end user uses to edit the document. None of the attributes are required to serialize a valid xlsx object.
# @see shared-documentPropertiesExtended.xsd
# @note Support is not implemented for the following complex types:
@@ -9,7 +8,6 @@ module Axlsx
# HLinks (VectorVariant),
# DigSig (DigSigBlob)
class App
-
include Axlsx::OptionsParser
# Creates an App object
@@ -228,7 +226,5 @@ module Axlsx
end
str << '</Properties>'
end
-
end
-
end
diff --git a/lib/axlsx/doc_props/core.rb b/lib/axlsx/doc_props/core.rb
index 541fa1ad..279b7493 100644
--- a/lib/axlsx/doc_props/core.rb
+++ b/lib/axlsx/doc_props/core.rb
@@ -1,10 +1,8 @@
module Axlsx
-
# The core object for the package.
# @note Packages manage their own core object.
# @see Package#core
class Core
-
# Creates a new Core object.
# @option options [String] creator
# @option options [Time] created
@@ -32,7 +30,5 @@ module Axlsx
str << '<cp:revision>0</cp:revision>'
str << '</cp:coreProperties>'
end
-
end
-
end
diff --git a/lib/axlsx/drawing/area_chart.rb b/lib/axlsx/drawing/area_chart.rb
index fa0f5ebf..7e831447 100644
--- a/lib/axlsx/drawing/area_chart.rb
+++ b/lib/axlsx/drawing/area_chart.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# The AreaChart is a two dimentional line chart (who would have guessed?) that you can add to your worksheet.
# @example Creating a chart
# # This example creates a line in a single sheet.
@@ -19,7 +18,6 @@ module Axlsx
# @see Series
# @see Package#serialize
class AreaChart < Chart
-
# the category axis
# @return [CatAxis]
def cat_axis
diff --git a/lib/axlsx/drawing/area_series.rb b/lib/axlsx/drawing/area_series.rb
index a168bb07..fd3dd501 100644
--- a/lib/axlsx/drawing/area_series.rb
+++ b/lib/axlsx/drawing/area_series.rb
@@ -4,7 +4,6 @@ module Axlsx
# @see Worksheet#add_chart
# @see Chart#add_series
class AreaSeries < Series
-
# The data for this series.
# @return [ValAxisData]
attr_reader :data
@@ -104,6 +103,5 @@ module Axlsx
# assigns the labels for this series
def labels=(v) DataTypeValidator.validate "Series.labels", [AxDataSource], v; @labels = v; end
-
end
end
diff --git a/lib/axlsx/drawing/ax_data_source.rb b/lib/axlsx/drawing/ax_data_source.rb
index cef683dd..10eb6c5e 100644
--- a/lib/axlsx/drawing/ax_data_source.rb
+++ b/lib/axlsx/drawing/ax_data_source.rb
@@ -1,9 +1,7 @@
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
-
# 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,7 +17,5 @@ module Axlsx
def self.allowed_tag_names
[:xVal, :cat]
end
-
end
-
end
diff --git a/lib/axlsx/drawing/axes.rb b/lib/axlsx/drawing/axes.rb
index 6e66dcc0..146d566e 100644
--- a/lib/axlsx/drawing/axes.rb
+++ b/lib/axlsx/drawing/axes.rb
@@ -1,9 +1,7 @@
module Axlsx
-
# The Axes class creates and manages axis information and
# serialization for charts.
class Axes
-
# @param [Hash] options options used to generate axis each key
# should be an axis name like :val_axis and its value should be the
# class of the axis type to construct. The :cat_axis, if there is one,
diff --git a/lib/axlsx/drawing/axis.rb b/lib/axlsx/drawing/axis.rb
index eb9a0759..6f65f147 100644
--- a/lib/axlsx/drawing/axis.rb
+++ b/lib/axlsx/drawing/axis.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# the access class defines common properties and values for a chart axis.
class Axis
-
include Axlsx::OptionsParser
# Creates an Axis object
@@ -183,7 +181,5 @@ module Axlsx
str << ('<c:crossAx val="' << @cross_axis.id.to_s << '"/>')
str << ('<c:crosses val="' << @crosses.to_s << '"/>')
end
-
end
-
end
diff --git a/lib/axlsx/drawing/bar_3D_chart.rb b/lib/axlsx/drawing/bar_3D_chart.rb
index 33eac167..1bb47da7 100644
--- a/lib/axlsx/drawing/bar_3D_chart.rb
+++ b/lib/axlsx/drawing/bar_3D_chart.rb
@@ -1,12 +1,10 @@
module Axlsx
-
# The Bar3DChart is a three dimentional barchart (who would have guessed?) that you can add to your worksheet.
# @see Worksheet#add_chart
# @see Chart#add_series
# @see Package#serialize
# @see README for an example
class Bar3DChart < Chart
-
# the category axis
# @return [CatAxis]
def cat_axis
diff --git a/lib/axlsx/drawing/bar_chart.rb b/lib/axlsx/drawing/bar_chart.rb
index e3260ca0..84b9faa1 100644
--- a/lib/axlsx/drawing/bar_chart.rb
+++ b/lib/axlsx/drawing/bar_chart.rb
@@ -1,12 +1,10 @@
module Axlsx
-
# The BarChart is a two dimentional barchart that you can add to your worksheet.
# @see Worksheet#add_chart
# @see Chart#add_series
# @see Package#serialize
# @see README for an example
class BarChart < Chart
-
# the category axis
# @return [CatAxis]
def cat_axis
diff --git a/lib/axlsx/drawing/bar_series.rb b/lib/axlsx/drawing/bar_series.rb
index 2ee40488..fcf7d98f 100644
--- a/lib/axlsx/drawing/bar_series.rb
+++ b/lib/axlsx/drawing/bar_series.rb
@@ -4,7 +4,6 @@ module Axlsx
# @see Worksheet#add_chart
# @see Chart#add_series
class BarSeries < Series
-
# The data for this series.
# @return [NumDataSource]
attr_reader :data
@@ -88,7 +87,5 @@ module Axlsx
# assigns the labels for this series
def labels=(v) DataTypeValidator.validate "Series.labels", [AxDataSource], v; @labels = v; end
-
end
-
end
diff --git a/lib/axlsx/drawing/bubble_chart.rb b/lib/axlsx/drawing/bubble_chart.rb
index 3f9745f1..9d0f3ff1 100644
--- a/lib/axlsx/drawing/bubble_chart.rb
+++ b/lib/axlsx/drawing/bubble_chart.rb
@@ -1,11 +1,9 @@
module Axlsx
-
# The BubbleChart allows you to insert a bubble chart into your worksheet
# @see Worksheet#add_chart
# @see Chart#add_series
# @see README for an example
class BubbleChart < Chart
-
include Axlsx::OptionsParser
# the x value axis
diff --git a/lib/axlsx/drawing/bubble_series.rb b/lib/axlsx/drawing/bubble_series.rb
index 4fdf86ad..7d6e7bf6 100644
--- a/lib/axlsx/drawing/bubble_series.rb
+++ b/lib/axlsx/drawing/bubble_series.rb
@@ -1,12 +1,10 @@
module Axlsx
-
# A BubbleSeries defines the x/y position and bubble size of data in the chart
# @note The recommended way to manage series is to use Chart#add_series
# @see Worksheet#add_chart
# @see Chart#add_series
# @see examples/example.rb
class BubbleSeries < Series
-
# The x data for this series.
# @return [AxDataSource]
attr_reader :xData
diff --git a/lib/axlsx/drawing/cat_axis.rb b/lib/axlsx/drawing/cat_axis.rb
index 6e61d336..925d6ad6 100644
--- a/lib/axlsx/drawing/cat_axis.rb
+++ b/lib/axlsx/drawing/cat_axis.rb
@@ -1,7 +1,6 @@
module Axlsx
#A CatAxis object defines a chart category axis
class CatAxis < Axis
-
# Creates a new CatAxis object
# @option options [Integer] tick_lbl_skip
# @option options [Integer] tick_mark_skip
@@ -77,7 +76,5 @@ module Axlsx
str << ('<c:tickMarkSkip val="' << @tick_mark_skip.to_s << '"/>')
str << '</c:catAx>'
end
-
end
-
end
diff --git a/lib/axlsx/drawing/chart.rb b/lib/axlsx/drawing/chart.rb
index 45a9113d..49c72b58 100644
--- a/lib/axlsx/drawing/chart.rb
+++ b/lib/axlsx/drawing/chart.rb
@@ -1,10 +1,8 @@
module Axlsx
-
# A Chart is the superclass for specific charts
# @note Worksheet#add_chart is the recommended way to create charts for your worksheets.
# @see README for examples
class Chart
-
include Axlsx::OptionsParser
# Creates a new chart object
# @param [GraphicalFrame] frame The frame that holds this chart.
@@ -292,7 +290,5 @@ module Axlsx
# sets the view_3D object for the chart
def view_3D=(v) DataTypeValidator.validate "#{self.class}.view_3D", View3D, v; @view_3D = v; end
alias :view3D= :view_3D=
-
end
-
end
diff --git a/lib/axlsx/drawing/d_lbls.rb b/lib/axlsx/drawing/d_lbls.rb
index 8623fd8a..fe204ddc 100644
--- a/lib/axlsx/drawing/d_lbls.rb
+++ b/lib/axlsx/drawing/d_lbls.rb
@@ -5,7 +5,6 @@ module Axlsx
#The DLbls class manages serialization of data labels
# showLeaderLines and leaderLines are not currently implemented
class DLbls
-
include Axlsx::Accessors
include Axlsx::OptionsParser
# creates a new DLbls object
@@ -84,6 +83,5 @@ module Axlsx
@d_lbl_pos = nil
@show_leader_lines = nil
end
-
end
end
diff --git a/lib/axlsx/drawing/drawing.rb b/lib/axlsx/drawing/drawing.rb
index 87937d72..0de5dc15 100644
--- a/lib/axlsx/drawing/drawing.rb
+++ b/lib/axlsx/drawing/drawing.rb
@@ -57,7 +57,6 @@ module Axlsx
# @see Chart
# see examples/example.rb for an example of how to create a chart.
class Drawing
-
# The worksheet that owns the drawing
# @return [Worksheet]
attr_reader :worksheet
@@ -160,6 +159,5 @@ module Axlsx
anchors.each { |anchor| anchor.to_xml_string(str) }
str << '</xdr:wsDr>'
end
-
end
end
diff --git a/lib/axlsx/drawing/graphic_frame.rb b/lib/axlsx/drawing/graphic_frame.rb
index 93216e79..006b3b0f 100644
--- a/lib/axlsx/drawing/graphic_frame.rb
+++ b/lib/axlsx/drawing/graphic_frame.rb
@@ -3,7 +3,6 @@ module Axlsx
# @note The recommended way to manage charts is Worksheet#add_chart
# @see Worksheet#add_chart
class GraphicFrame
-
# A reference to the chart object associated with this frame
# @return [Chart]
attr_reader :chart
@@ -48,6 +47,5 @@ module Axlsx
str << '</a:graphic>'
str << '</xdr:graphicFrame>'
end
-
end
end
diff --git a/lib/axlsx/drawing/hyperlink.rb b/lib/axlsx/drawing/hyperlink.rb
index 407e701c..9ff9ee4a 100644
--- a/lib/axlsx/drawing/hyperlink.rb
+++ b/lib/axlsx/drawing/hyperlink.rb
@@ -3,7 +3,6 @@ module Axlsx
# @note using the hyperlink option when calling add_image on a drawing object is the recommended way to manage hyperlinks
# @see {file:README} README
class Hyperlink
-
include Axlsx::SerializedAttributes
include Axlsx::OptionsParser
@@ -94,6 +93,5 @@ module Axlsx
def to_xml_string(str = '')
serialized_tag 'a:hlinkClick', str, {:'r:id' => relationship.Id, :'xmlns:r' => XML_NS_R }
end
-
end
end
diff --git a/lib/axlsx/drawing/line_3D_chart.rb b/lib/axlsx/drawing/line_3D_chart.rb
index 8816d2e7..da62851f 100644
--- a/lib/axlsx/drawing/line_3D_chart.rb
+++ b/lib/axlsx/drawing/line_3D_chart.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# The Line3DChart is a three dimentional line chart (who would have guessed?) that you can add to your worksheet.
# @example Creating a chart
# # This example creates a line in a single sheet.
@@ -19,7 +18,6 @@ module Axlsx
# @see Series
# @see Package#serialize
class Line3DChart < Axlsx::LineChart
-
# space between bar or column clusters, as a percentage of the bar or column width.
# @return [String]
attr_reader :gap_depth
diff --git a/lib/axlsx/drawing/line_chart.rb b/lib/axlsx/drawing/line_chart.rb
index dd0517cb..a1734dea 100644
--- a/lib/axlsx/drawing/line_chart.rb
+++ b/lib/axlsx/drawing/line_chart.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# The LineChart is a two dimentional line chart (who would have guessed?) that you can add to your worksheet.
# @example Creating a chart
# # This example creates a line in a single sheet.
@@ -19,7 +18,6 @@ module Axlsx
# @see Series
# @see Package#serialize
class LineChart < Chart
-
# the category axis
# @return [CatAxis]
def cat_axis
diff --git a/lib/axlsx/drawing/line_series.rb b/lib/axlsx/drawing/line_series.rb
index e3c1fa90..2ef18484 100644
--- a/lib/axlsx/drawing/line_series.rb
+++ b/lib/axlsx/drawing/line_series.rb
@@ -4,7 +4,6 @@ module Axlsx
# @see Worksheet#add_chart
# @see Chart#add_series
class LineSeries < Series
-
# The data for this series.
# @return [ValAxisData]
attr_reader :data
@@ -104,6 +103,5 @@ module Axlsx
# assigns the labels for this series
def labels=(v) DataTypeValidator.validate "Series.labels", [AxDataSource], v; @labels = v; end
-
end
end
diff --git a/lib/axlsx/drawing/marker.rb b/lib/axlsx/drawing/marker.rb
index 94125143..53a52dd1 100644
--- a/lib/axlsx/drawing/marker.rb
+++ b/lib/axlsx/drawing/marker.rb
@@ -3,7 +3,6 @@ module Axlsx
# @note The recommended way to manage markers is Worksheet#add_chart Markers are created for a two cell anchor based on the :start and :end options.
# @see Worksheet#add_chart
class Marker
-
include Axlsx::OptionsParser
# Creates a new Marker object
@@ -77,7 +76,5 @@ module Axlsx
end
[x, y]
end
-
end
-
end
diff --git a/lib/axlsx/drawing/num_data.rb b/lib/axlsx/drawing/num_data.rb
index 27929ee3..9374dac3 100644
--- a/lib/axlsx/drawing/num_data.rb
+++ b/lib/axlsx/drawing/num_data.rb
@@ -1,8 +1,6 @@
module Axlsx
-
#This class specifies data for a particular data point. It is used for both numCache and numLit object
class NumData
-
include Axlsx::OptionsParser
# creates a new NumVal object
@@ -45,7 +43,5 @@ module Axlsx
end
str << ('</c:' << @tag_name.to_s << '>')
end
-
end
-
end
diff --git a/lib/axlsx/drawing/num_data_source.rb b/lib/axlsx/drawing/num_data_source.rb
index 87caac2a..bf5ad9ad 100644
--- a/lib/axlsx/drawing/num_data_source.rb
+++ b/lib/axlsx/drawing/num_data_source.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# A numeric data source for use by charts.
class NumDataSource
-
include Axlsx::OptionsParser
# creates a new NumDataSource object
diff --git a/lib/axlsx/drawing/num_val.rb b/lib/axlsx/drawing/num_val.rb
index 3b795f21..113fe865 100644
--- a/lib/axlsx/drawing/num_val.rb
+++ b/lib/axlsx/drawing/num_val.rb
@@ -1,8 +1,6 @@
module Axlsx
-
#This class specifies data for a particular data point.
class NumVal < StrVal
-
# A string representing the format code to apply.
# For more information see see the SpreadsheetML numFmt element's (§18.8.30) formatCode attribute.
# @return [String]
diff --git a/lib/axlsx/drawing/one_cell_anchor.rb b/lib/axlsx/drawing/one_cell_anchor.rb
index 01767574..c17f4a25 100644
--- a/lib/axlsx/drawing/one_cell_anchor.rb
+++ b/lib/axlsx/drawing/one_cell_anchor.rb
@@ -4,7 +4,6 @@ module Axlsx
# @see Worksheet#add_chart
# @see Worksheet#add_image
class OneCellAnchor
-
include Axlsx::OptionsParser
# Creates a new OneCellAnchor object and an Pic associated with it.
@@ -94,6 +93,5 @@ module Axlsx
cx = @width * 914400 / 96
{:cy=>cy, :cx=>cx}
end
-
end
end
diff --git a/lib/axlsx/drawing/pic.rb b/lib/axlsx/drawing/pic.rb
index 385819cb..869dde4a 100644
--- a/lib/axlsx/drawing/pic.rb
+++ b/lib/axlsx/drawing/pic.rb
@@ -3,7 +3,6 @@ module Axlsx
# Worksheet#add_image is the recommended way to manage images in your sheets
# @see Worksheet#add_image
class Pic
-
include Axlsx::OptionsParser
# Creates a new Pic(ture) object
diff --git a/lib/axlsx/drawing/picture_locking.rb b/lib/axlsx/drawing/picture_locking.rb
index a9cb5032..e230ec89 100644
--- a/lib/axlsx/drawing/picture_locking.rb
+++ b/lib/axlsx/drawing/picture_locking.rb
@@ -1,7 +1,6 @@
module Axlsx
# The picture locking class defines the locking properties for pictures in your workbook.
class PictureLocking
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
include Axlsx::Accessors
@@ -36,6 +35,5 @@ module Axlsx
def to_xml_string(str = '')
serialized_tag('a:picLocks', str)
end
-
end
end
diff --git a/lib/axlsx/drawing/pie_3D_chart.rb b/lib/axlsx/drawing/pie_3D_chart.rb
index e06e8d57..5c2b57ac 100644
--- a/lib/axlsx/drawing/pie_3D_chart.rb
+++ b/lib/axlsx/drawing/pie_3D_chart.rb
@@ -1,11 +1,9 @@
module Axlsx
-
# The Pie3DChart is a three dimentional piechart (who would have guessed?) that you can add to your worksheet.
# @see Worksheet#add_chart
# @see Chart#add_series
# @see README for an example
class Pie3DChart < Chart
-
# Creates a new pie chart object
# @param [GraphicFrame] frame The workbook that owns this chart.
# @option options [Cell, String] title
@@ -40,6 +38,5 @@ module Axlsx
str << '</c:pie3DChart>'
end
end
-
end
end
diff --git a/lib/axlsx/drawing/pie_series.rb b/lib/axlsx/drawing/pie_series.rb
index 10755350..4c1b37fb 100644
--- a/lib/axlsx/drawing/pie_series.rb
+++ b/lib/axlsx/drawing/pie_series.rb
@@ -1,11 +1,9 @@
module Axlsx
-
# A PieSeries defines the data and labels and explosion for pie charts series.
# @note The recommended way to manage series is to use Chart#add_series
# @see Worksheet#add_chart
# @see Chart#add_series
class PieSeries < Series
-
# The data for this series.
# @return [SimpleTypedList]
attr_reader :data
@@ -67,7 +65,5 @@ module Axlsx
# assigns the labels for this series
def labels=(v) DataTypeValidator.validate "Series.labels", [AxDataSource], v; @labels = v; end
-
end
-
end
diff --git a/lib/axlsx/drawing/scaling.rb b/lib/axlsx/drawing/scaling.rb
index 9d1ed53e..82811c11 100644
--- a/lib/axlsx/drawing/scaling.rb
+++ b/lib/axlsx/drawing/scaling.rb
@@ -1,7 +1,6 @@
module Axlsx
# The Scaling class defines axis scaling
class Scaling
-
include Axlsx::OptionsParser
# creates a new Scaling object
@@ -54,6 +53,5 @@ module Axlsx
str << ('<c:max val="' << @max.to_s << '"/>') unless @max.nil?
str << '</c:scaling>'
end
-
end
end
diff --git a/lib/axlsx/drawing/scatter_chart.rb b/lib/axlsx/drawing/scatter_chart.rb
index 2050cb33..fd6fa3d7 100644
--- a/lib/axlsx/drawing/scatter_chart.rb
+++ b/lib/axlsx/drawing/scatter_chart.rb
@@ -1,11 +1,9 @@
module Axlsx
-
# The ScatterChart allows you to insert a scatter chart into your worksheet
# @see Worksheet#add_chart
# @see Chart#add_series
# @see README for an example
class ScatterChart < Chart
-
include Axlsx::OptionsParser
# The Style for the scatter chart
diff --git a/lib/axlsx/drawing/scatter_series.rb b/lib/axlsx/drawing/scatter_series.rb
index 6b65a07b..dba1fdf5 100644
--- a/lib/axlsx/drawing/scatter_series.rb
+++ b/lib/axlsx/drawing/scatter_series.rb
@@ -1,12 +1,10 @@
module Axlsx
-
# A ScatterSeries defines the x and y position of data in the chart
# @note The recommended way to manage series is to use Chart#add_series
# @see Worksheet#add_chart
# @see Chart#add_series
# @see examples/example.rb
class ScatterSeries < Series
-
# The x data for this series.
# @return [NamedAxisData]
attr_reader :xData
diff --git a/lib/axlsx/drawing/ser_axis.rb b/lib/axlsx/drawing/ser_axis.rb
index 805e4244..f1da6037 100644
--- a/lib/axlsx/drawing/ser_axis.rb
+++ b/lib/axlsx/drawing/ser_axis.rb
@@ -1,7 +1,6 @@
module Axlsx
#A SerAxis object defines a series axis
class SerAxis < Axis
-
# The number of tick lables to skip between labels
# @return [Integer]
attr_reader :tick_lbl_skip
@@ -39,5 +38,4 @@ module Axlsx
str << '</c:serAx>'
end
end
-
end
diff --git a/lib/axlsx/drawing/series.rb b/lib/axlsx/drawing/series.rb
index 9404b959..e2445bc9 100644
--- a/lib/axlsx/drawing/series.rb
+++ b/lib/axlsx/drawing/series.rb
@@ -4,7 +4,6 @@ module Axlsx
# @see Worksheet#add_chart
# @see Chart#add_series
class Series
-
include Axlsx::OptionsParser
# The chart that owns this series
diff --git a/lib/axlsx/drawing/series_title.rb b/lib/axlsx/drawing/series_title.rb
index 4f58ef4a..f18be178 100644
--- a/lib/axlsx/drawing/series_title.rb
+++ b/lib/axlsx/drawing/series_title.rb
@@ -1,7 +1,6 @@
module Axlsx
# A series title is a Title with a slightly different serialization than chart titles.
class SeriesTitle < Title
-
# Serializes the object
# @param [String] str
# @return [String]
diff --git a/lib/axlsx/drawing/str_data.rb b/lib/axlsx/drawing/str_data.rb
index 297986d1..e4f94e89 100644
--- a/lib/axlsx/drawing/str_data.rb
+++ b/lib/axlsx/drawing/str_data.rb
@@ -1,9 +1,7 @@
module Axlsx
-
#This specifies the last string data used for a chart. (e.g. strLit and strCache)
# This class is extended for NumData to include the formatCode attribute required for numLit and numCache
class StrData
-
include Axlsx::OptionsParser
# creates a new StrVal object
@@ -35,7 +33,5 @@ module Axlsx
end
str << ('</c:' << @tag_name.to_s << '>')
end
-
end
-
end
diff --git a/lib/axlsx/drawing/str_val.rb b/lib/axlsx/drawing/str_val.rb
index 00152bef..26f12e26 100644
--- a/lib/axlsx/drawing/str_val.rb
+++ b/lib/axlsx/drawing/str_val.rb
@@ -1,8 +1,6 @@
module Axlsx
-
#This class specifies data for a particular data point.
class StrVal
-
include Axlsx::OptionsParser
# creates a new StrVal object
diff --git a/lib/axlsx/drawing/title.rb b/lib/axlsx/drawing/title.rb
index f62422f9..0c613e13 100644
--- a/lib/axlsx/drawing/title.rb
+++ b/lib/axlsx/drawing/title.rb
@@ -1,7 +1,6 @@
module Axlsx
# A Title stores information about the title of a chart
class Title
-
# The text to be shown. Setting this property directly with a string will remove the cell reference.
# @return [String]
attr_reader :text
@@ -101,6 +100,5 @@ module Axlsx
str << '<c:overlay val="0"/>'
str << '</c:title>'
end
-
end
end
diff --git a/lib/axlsx/drawing/two_cell_anchor.rb b/lib/axlsx/drawing/two_cell_anchor.rb
index 81a5ca93..aa38c3db 100644
--- a/lib/axlsx/drawing/two_cell_anchor.rb
+++ b/lib/axlsx/drawing/two_cell_anchor.rb
@@ -3,7 +3,6 @@ module Axlsx
# @note The recommended way to manage drawings and charts is Worksheet#add_chart. Anchors are specified by the :start_at and :end_at options to that method.
# @see Worksheet#add_chart
class TwoCellAnchor
-
include Axlsx::OptionsParser
# A marker that defines the from cell anchor. The default from column and row are 0 and 0 respectively
diff --git a/lib/axlsx/drawing/val_axis.rb b/lib/axlsx/drawing/val_axis.rb
index b205e1c8..ead09ff8 100644
--- a/lib/axlsx/drawing/val_axis.rb
+++ b/lib/axlsx/drawing/val_axis.rb
@@ -1,7 +1,6 @@
module Axlsx
# the ValAxis class defines a chart value axis.
class ValAxis < Axis
-
# This element specifies how the value axis crosses the category axis.
# must be one of [:between, :midCat]
# @return [Symbol]
@@ -31,6 +30,5 @@ module Axlsx
str << ('<c:crossBetween val="' << @cross_between.to_s << '"/>')
str << '</c:valAx>'
end
-
end
end
diff --git a/lib/axlsx/drawing/view_3D.rb b/lib/axlsx/drawing/view_3D.rb
index ab959c87..250f53f2 100644
--- a/lib/axlsx/drawing/view_3D.rb
+++ b/lib/axlsx/drawing/view_3D.rb
@@ -1,7 +1,6 @@
module Axlsx
# 3D attributes for a chart.
class View3D
-
include Axlsx::OptionsParser
# Creates a new View3D for charts
diff --git a/lib/axlsx/drawing/vml_drawing.rb b/lib/axlsx/drawing/vml_drawing.rb
index ac39c63d..ccf3e421 100644
--- a/lib/axlsx/drawing/vml_drawing.rb
+++ b/lib/axlsx/drawing/vml_drawing.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# a vml drawing used for comments in excel.
class VmlDrawing
-
# creates a new Vml Drawing object.
# @param [Comments] comments the comments object this drawing is associated with
def initialize(comments)
@@ -35,8 +33,6 @@ module Axlsx
BAD_PROGRAMMER
@comments.each { |comment| comment.vml_shape.to_xml_string str }
str << "</xml>"
-
end
-
end
end
diff --git a/lib/axlsx/drawing/vml_shape.rb b/lib/axlsx/drawing/vml_shape.rb
index 21cac911..951cd58d 100644
--- a/lib/axlsx/drawing/vml_shape.rb
+++ b/lib/axlsx/drawing/vml_shape.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# A VmlShape is used to position and render a comment.
class VmlShape
-
include Axlsx::OptionsParser
include Axlsx::Accessors
@@ -60,7 +58,6 @@ str << <<SHAME_ON_YOU
</x:ClientData>
</v:shape>
SHAME_ON_YOU
-
end
end
end
diff --git a/lib/axlsx/rels/relationship.rb b/lib/axlsx/rels/relationship.rb
index f5bda412..f1759649 100644
--- a/lib/axlsx/rels/relationship.rb
+++ b/lib/axlsx/rels/relationship.rb
@@ -2,7 +2,6 @@ module Axlsx
# A relationship defines a reference between package parts.
# @note Packages automatically manage relationships.
class Relationship
-
class << self
# Keeps track of relationship ids in use.
# @return [Array]
@@ -124,6 +123,5 @@ module Axlsx
key << self.Target if self.TargetMode == :External
key
end
-
end
end
diff --git a/lib/axlsx/rels/relationships.rb b/lib/axlsx/rels/relationships.rb
index 5e542e2c..8f3b62cc 100644
--- a/lib/axlsx/rels/relationships.rb
+++ b/lib/axlsx/rels/relationships.rb
@@ -4,7 +4,6 @@ require 'axlsx/rels/relationship.rb'
# Relationships are a collection of Relations that define how package parts are related.
# @note The package automatically manages releationships.
class Relationships < SimpleTypedList
-
# Creates a new Relationships collection based on SimpleTypedList
def initialize
super Relationship
@@ -26,6 +25,5 @@ require 'axlsx/rels/relationship.rb'
each{ |rel| rel.to_xml_string(str) }
str << '</Relationships>'
end
-
end
end
diff --git a/lib/axlsx/stylesheet/border.rb b/lib/axlsx/stylesheet/border.rb
index bf342c7f..b9ff785b 100644
--- a/lib/axlsx/stylesheet/border.rb
+++ b/lib/axlsx/stylesheet/border.rb
@@ -1,7 +1,6 @@
module Axlsx
# This class details a border used in Office Open XML spreadsheet styles.
class Border
-
include Axlsx::SerializedAttributes
include Axlsx::OptionsParser
@@ -67,6 +66,5 @@ module Axlsx
end
str << '</border>'
end
-
end
end
diff --git a/lib/axlsx/stylesheet/border_pr.rb b/lib/axlsx/stylesheet/border_pr.rb
index 7c32af13..630cf42e 100644
--- a/lib/axlsx/stylesheet/border_pr.rb
+++ b/lib/axlsx/stylesheet/border_pr.rb
@@ -65,6 +65,5 @@ module Axlsx
@color.to_xml_string(str) if @color.is_a?(Color)
str << ('</' << @name.to_s << '>')
end
-
end
end
diff --git a/lib/axlsx/stylesheet/cell_alignment.rb b/lib/axlsx/stylesheet/cell_alignment.rb
index 45fe0e7d..cf03c171 100644
--- a/lib/axlsx/stylesheet/cell_alignment.rb
+++ b/lib/axlsx/stylesheet/cell_alignment.rb
@@ -1,10 +1,8 @@
module Axlsx
-
# CellAlignment stores information about the cell alignment of a style Xf Object.
# @note Using Styles#add_style is the recommended way to manage cell alignment.
# @see Styles#add_style
class CellAlignment
-
include Axlsx::SerializedAttributes
include Axlsx::OptionsParser
@@ -122,6 +120,5 @@ module Axlsx
def to_xml_string(str = '')
serialized_tag('alignment', str)
end
-
end
end
diff --git a/lib/axlsx/stylesheet/cell_protection.rb b/lib/axlsx/stylesheet/cell_protection.rb
index 94648de3..6d98ff19 100644
--- a/lib/axlsx/stylesheet/cell_protection.rb
+++ b/lib/axlsx/stylesheet/cell_protection.rb
@@ -3,7 +3,6 @@ module Axlsx
# @note Using Styles#add_style is the recommended way to manage cell protection.
# @see Styles#add_style
class CellProtection
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
@@ -35,6 +34,5 @@ module Axlsx
def to_xml_string(str = '')
serialized_tag('protection', str)
end
-
end
end
diff --git a/lib/axlsx/stylesheet/cell_style.rb b/lib/axlsx/stylesheet/cell_style.rb
index 9297e243..e2c3a09e 100644
--- a/lib/axlsx/stylesheet/cell_style.rb
+++ b/lib/axlsx/stylesheet/cell_style.rb
@@ -3,7 +3,6 @@ module Axlsx
# @note Using Styles#add_style is the recommended way to manage cell styling.
# @see Styles#add_style
class CellStyle
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
@@ -65,7 +64,5 @@ module Axlsx
def to_xml_string(str = '')
serialized_tag('cellStyle', str)
end
-
end
-
end
diff --git a/lib/axlsx/stylesheet/color.rb b/lib/axlsx/stylesheet/color.rb
index e4051e96..709d22c3 100644
--- a/lib/axlsx/stylesheet/color.rb
+++ b/lib/axlsx/stylesheet/color.rb
@@ -1,7 +1,6 @@
module Axlsx
# The color class represents a color used for borders, fills an fonts
class Color
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/stylesheet/dxf.rb b/lib/axlsx/stylesheet/dxf.rb
index b5423b2a..637e3d54 100644
--- a/lib/axlsx/stylesheet/dxf.rb
+++ b/lib/axlsx/stylesheet/dxf.rb
@@ -2,7 +2,6 @@ module Axlsx
# The Dxf class defines an incremental formatting record for use in Styles. The recommended way to manage styles for your workbook is with Styles#add_style
# @see Styles#add_style
class Dxf
-
include Axlsx::OptionsParser
# The order in which the child elements is put in the XML seems to
@@ -72,7 +71,5 @@ module Axlsx
end
str << '</dxf>'
end
-
end
-
end
diff --git a/lib/axlsx/stylesheet/fill.rb b/lib/axlsx/stylesheet/fill.rb
index 9b124e8d..aeff4867 100644
--- a/lib/axlsx/stylesheet/fill.rb
+++ b/lib/axlsx/stylesheet/fill.rb
@@ -5,7 +5,6 @@ module Axlsx
# @see PatternFill
# @see GradientFill
class Fill
-
# The type of fill
# @return [PatternFill, GradientFill]
attr_reader :fill_type
@@ -28,6 +27,5 @@ module Axlsx
# @see fill_type
def fill_type=(v) DataTypeValidator.validate "Fill.fill_type", [PatternFill, GradientFill], v; @fill_type = v; end
-
end
end
diff --git a/lib/axlsx/stylesheet/gradient_fill.rb b/lib/axlsx/stylesheet/gradient_fill.rb
index 46098b53..8d88f373 100644
--- a/lib/axlsx/stylesheet/gradient_fill.rb
+++ b/lib/axlsx/stylesheet/gradient_fill.rb
@@ -2,7 +2,6 @@ module Axlsx
# A GradientFill defines the color and positioning for gradiant cell fill.
# @see Open Office XML Part 1 §18.8.24
class GradientFill
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/stylesheet/num_fmt.rb b/lib/axlsx/stylesheet/num_fmt.rb
index 3f99d8d4..ed239dfc 100644
--- a/lib/axlsx/stylesheet/num_fmt.rb
+++ b/lib/axlsx/stylesheet/num_fmt.rb
@@ -2,7 +2,6 @@ module Axlsx
# A NumFmt object defines an identifier and formatting code for data in cells.
# @note The recommended way to manage styles is Styles#add_style
class NumFmt
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
@@ -80,6 +79,5 @@ module Axlsx
end
str
end
-
end
end
diff --git a/lib/axlsx/stylesheet/pattern_fill.rb b/lib/axlsx/stylesheet/pattern_fill.rb
index 96614ecd..0bcef74b 100644
--- a/lib/axlsx/stylesheet/pattern_fill.rb
+++ b/lib/axlsx/stylesheet/pattern_fill.rb
@@ -3,7 +3,6 @@ module Axlsx
# @note The recommended way to manage styles is with Styles#add_style
# @see Style#add_style
class PatternFill
-
include Axlsx::OptionsParser
# Creates a new PatternFill Object
# @option options [Symbol] patternType
diff --git a/lib/axlsx/stylesheet/table_style.rb b/lib/axlsx/stylesheet/table_style.rb
index 6be6a9a2..edef6216 100644
--- a/lib/axlsx/stylesheet/table_style.rb
+++ b/lib/axlsx/stylesheet/table_style.rb
@@ -2,7 +2,6 @@ module Axlsx
# A single table style definition and is a collection for tableStyleElements
# @note Table are not supported in this version and only the defaults required for a valid workbook are created.
class TableStyle < SimpleTypedList
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
@@ -48,6 +47,5 @@ module Axlsx
each { |table_style_el| table_style_el.to_xml_string(str) }
str << '</tableStyle>'
end
-
end
end
diff --git a/lib/axlsx/stylesheet/table_style_element.rb b/lib/axlsx/stylesheet/table_style_element.rb
index 1b7b3db9..4bc2a787 100644
--- a/lib/axlsx/stylesheet/table_style_element.rb
+++ b/lib/axlsx/stylesheet/table_style_element.rb
@@ -2,7 +2,6 @@ module Axlsx
# an element of style that belongs to a table style.
# @note tables and table styles are not supported in this version. This class exists in preparation for that support.
class TableStyleElement
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
@@ -71,6 +70,5 @@ module Axlsx
def to_xml_string(str = '')
serialized_tag('tableStyleElement', str)
end
-
end
end
diff --git a/lib/axlsx/stylesheet/table_styles.rb b/lib/axlsx/stylesheet/table_styles.rb
index d10e9b05..27c75609 100644
--- a/lib/axlsx/stylesheet/table_styles.rb
+++ b/lib/axlsx/stylesheet/table_styles.rb
@@ -2,7 +2,6 @@ module Axlsx
# TableStyles represents a collection of style definitions for table styles and pivot table styles.
# @note Support for custom table styles does not exist in this version. Many of the classes required are defined in preparation for future release. Please do not attempt to add custom table styles.
class TableStyles < SimpleTypedList
-
include Axlsx::SerializedAttributes
# Creates a new TableStyles object that is a container for TableStyle objects
@@ -39,7 +38,5 @@ module Axlsx
each { |table_style| table_style.to_xml_string(str) }
str << '</tableStyles>'
end
-
end
-
end
diff --git a/lib/axlsx/stylesheet/xf.rb b/lib/axlsx/stylesheet/xf.rb
index 13abf4f2..8b3b11b6 100644
--- a/lib/axlsx/stylesheet/xf.rb
+++ b/lib/axlsx/stylesheet/xf.rb
@@ -140,6 +140,5 @@ module Axlsx
protection.to_xml_string(str) if self.protection
str << '</xf>'
end
-
end
end
diff --git a/lib/axlsx/util/accessors.rb b/lib/axlsx/util/accessors.rb
index d49255be..8f481e37 100644
--- a/lib/axlsx/util/accessors.rb
+++ b/lib/axlsx/util/accessors.rb
@@ -14,7 +14,6 @@ module Axlsx
# Defines the class level xxx_attr_accessor methods
module ClassMethods
-
# Creates one or more string validated attr_accessors
# @param [Array] symbols An array of symbols representing the
# names of the attributes you will add to your class.
diff --git a/lib/axlsx/util/constants.rb b/lib/axlsx/util/constants.rb
index 7e26c478..401db1b8 100644
--- a/lib/axlsx/util/constants.rb
+++ b/lib/axlsx/util/constants.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# XML Encoding
ENCODING = "UTF-8".freeze
diff --git a/lib/axlsx/util/options_parser.rb b/lib/axlsx/util/options_parser.rb
index 9b6d1766..01a1b29b 100644
--- a/lib/axlsx/util/options_parser.rb
+++ b/lib/axlsx/util/options_parser.rb
@@ -2,7 +2,6 @@ module Axlsx
# This module defines a single method for parsing options in class
# initializers.
module OptionsParser
-
# Parses an options hash by calling any defined method by the same
# name of the key postfixed with an '='
# @param [Hash] options Options to parse.
diff --git a/lib/axlsx/util/serialized_attributes.rb b/lib/axlsx/util/serialized_attributes.rb
index 75712de1..2ac5c05f 100644
--- a/lib/axlsx/util/serialized_attributes.rb
+++ b/lib/axlsx/util/serialized_attributes.rb
@@ -2,7 +2,6 @@ module Axlsx
# This module allows us to define a list of symbols defining which
# attributes will be serialized for a class.
module SerializedAttributes
-
# Extend with class methods
def self.included(base)
base.send :extend, ClassMethods
@@ -10,7 +9,6 @@ module Axlsx
# class methods applied to all includers
module ClassMethods
-
# This is the method to be used in inheriting classes to specify
# which of the instance values are serializable
def serializable_attributes(*symbols)
diff --git a/lib/axlsx/util/simple_typed_list.rb b/lib/axlsx/util/simple_typed_list.rb
index 98c67d6b..ddab916e 100644
--- a/lib/axlsx/util/simple_typed_list.rb
+++ b/lib/axlsx/util/simple_typed_list.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# A SimpleTypedList is a type restrictive collection that allows some of the methods from Array and supports basic xml serialization.
# @private
class SimpleTypedList
@@ -170,7 +169,5 @@ module Axlsx
each { |item| item.to_xml_string(str) }
str << ('</' << el_name << '>')
end
-
end
-
end
diff --git a/lib/axlsx/util/storage.rb b/lib/axlsx/util/storage.rb
index dc6cc491..9712c563 100644
--- a/lib/axlsx/util/storage.rb
+++ b/lib/axlsx/util/storage.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# The Storage class represents a storage object or stream in a compound file.
class Storage
-
# Packing for the Storage when pushing an array of items into a byte stream
# Name, name length, type, color, left sibling, right sibling, child, classid, state, created, modified, sector, size
PACKING = "s32 s1 c2 l3 x16 x4 q2 l q".freeze
@@ -140,6 +138,5 @@ module Axlsx
@type ||= (data.nil? ? TYPES[:storage] : TYPES[:stream])
self.name = name
end
-
end
end
diff --git a/lib/axlsx/util/zip_command.rb b/lib/axlsx/util/zip_command.rb
index e83b44b0..23fd7cf6 100644
--- a/lib/axlsx/util/zip_command.rb
+++ b/lib/axlsx/util/zip_command.rb
@@ -2,7 +2,6 @@ require 'open3'
require 'shellwords'
module Axlsx
-
# The ZipCommand class supports zipping the Excel file contents using
# a binary zip program instead of RubyZip's `Zip::OutputStream`.
#
diff --git a/lib/axlsx/version.rb b/lib/axlsx/version.rb
index 2fda2686..cf70e2e9 100644
--- a/lib/axlsx/version.rb
+++ b/lib/axlsx/version.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# The current version
VERSION = "3.3.0"
end
diff --git a/lib/axlsx/workbook/defined_names.rb b/lib/axlsx/workbook/defined_names.rb
index abe8197a..30f80fcb 100644
--- a/lib/axlsx/workbook/defined_names.rb
+++ b/lib/axlsx/workbook/defined_names.rb
@@ -1,7 +1,6 @@
module Axlsx
# a simple types list of DefinedName objects
class DefinedNames < SimpleTypedList
-
# creates the DefinedNames object
def initialize
super DefinedName
diff --git a/lib/axlsx/workbook/shared_strings_table.rb b/lib/axlsx/workbook/shared_strings_table.rb
index bae33d9a..55040bc5 100644
--- a/lib/axlsx/workbook/shared_strings_table.rb
+++ b/lib/axlsx/workbook/shared_strings_table.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# The Shared String Table class is responsible for managing and serializing common strings in a workbook.
# While the ECMA-376 spec allows for both inline and shared strings it seems that at least some applications like iWorks Numbers
# and Google Docs require that the shared string table is populated in order to interoperate properly.
@@ -8,7 +7,6 @@ module Axlsx
# @note Serialization performance is affected by using this serialization method so if you do not need interoperability
# it is recomended that you use the default inline string method of serialization.
class SharedStringsTable
-
# The total number of strings in the workbook including duplicates
# Empty cells are treated as blank strings
# @return [Integer]
diff --git a/lib/axlsx/workbook/workbook.rb b/lib/axlsx/workbook/workbook.rb
index deb42d86..f2d9eab5 100644
--- a/lib/axlsx/workbook/workbook.rb
+++ b/lib/axlsx/workbook/workbook.rb
@@ -82,7 +82,6 @@ require 'axlsx/workbook/worksheet/selection.rb'
#
# *workbookPr is only supported to the extend of date1904
class Workbook
-
BOLD_FONT_MULTIPLIER = 1.5
FONT_SCALE_DIVISOR = 10.0
@@ -413,6 +412,5 @@ require 'axlsx/workbook/worksheet/selection.rb'
end
str << '</workbook>'
end
-
end
end
diff --git a/lib/axlsx/workbook/workbook_view.rb b/lib/axlsx/workbook/workbook_view.rb
index 2476ad84..b2656d00 100644
--- a/lib/axlsx/workbook/workbook_view.rb
+++ b/lib/axlsx/workbook/workbook_view.rb
@@ -19,14 +19,12 @@
# </xsd:complexType>
module Axlsx
-
# A BookView defines the display properties for a workbook.
# Units for window widths and other dimensions are expressed in twips.
# Twip measurements are portable between different display resolutions.
# The formula is (screen pixels) * (20 * 72) / (logical device dpi),
# where the logical device dpi can be different for x and y coordinates.
class WorkbookView
-
include Axlsx::SerializedAttributes
include Axlsx::OptionsParser
include Axlsx::Accessors
diff --git a/lib/axlsx/workbook/workbook_views.rb b/lib/axlsx/workbook/workbook_views.rb
index 0a059e8a..025d083b 100644
--- a/lib/axlsx/workbook/workbook_views.rb
+++ b/lib/axlsx/workbook/workbook_views.rb
@@ -1,7 +1,6 @@
module Axlsx
# a simple types list of BookView objects
class WorkbookViews < SimpleTypedList
-
# creates the book views object
def initialize
super WorkbookView
diff --git a/lib/axlsx/workbook/worksheet/auto_filter/auto_filter.rb b/lib/axlsx/workbook/worksheet/auto_filter/auto_filter.rb
index e419c0ab..fa0716a2 100644
--- a/lib/axlsx/workbook/worksheet/auto_filter/auto_filter.rb
+++ b/lib/axlsx/workbook/worksheet/auto_filter/auto_filter.rb
@@ -2,10 +2,8 @@ require 'axlsx/workbook/worksheet/auto_filter/filter_column.rb'
require 'axlsx/workbook/worksheet/auto_filter/filters.rb'
module Axlsx
-
#This class represents an auto filter range in a worksheet
class AutoFilter
-
# creates a new Autofilter object
# @param [Worksheet] worksheet
def initialize(worksheet)
@@ -72,6 +70,5 @@ module Axlsx
columns.each { |filter_column| filter_column.to_xml_string(str) }
str << "</autoFilter>"
end
-
end
end
diff --git a/lib/axlsx/workbook/worksheet/auto_filter/filter_column.rb b/lib/axlsx/workbook/worksheet/auto_filter/filter_column.rb
index 4816fd55..54d43acf 100644
--- a/lib/axlsx/workbook/worksheet/auto_filter/filter_column.rb
+++ b/lib/axlsx/workbook/worksheet/auto_filter/filter_column.rb
@@ -4,7 +4,6 @@ module Axlsx
# If a column in the AutoFilter range has no criteria specified,
# then there is no corresponding filterColumn collection expressed for that column.
class FilterColumn
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/workbook/worksheet/auto_filter/filters.rb b/lib/axlsx/workbook/worksheet/auto_filter/filters.rb
index 11356c0a..7b503acd 100644
--- a/lib/axlsx/workbook/worksheet/auto_filter/filters.rb
+++ b/lib/axlsx/workbook/worksheet/auto_filter/filters.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# When multiple values are chosen to filter by, or when a group of date values are chosen to filter by,
# this object groups those criteria together.
class Filters
@@ -104,7 +103,6 @@ module Axlsx
# This class expresses a filter criteria value.
class Filter
-
# Creates a new filter value object
# @param [Any] value The value of the filter. This is not restricted, but
# will be serialized via to_s so if you are passing an object
diff --git a/lib/axlsx/workbook/worksheet/border_creator.rb b/lib/axlsx/workbook/worksheet/border_creator.rb
index ef4e5aea..b949a76e 100644
--- a/lib/axlsx/workbook/worksheet/border_creator.rb
+++ b/lib/axlsx/workbook/worksheet/border_creator.rb
@@ -75,6 +75,5 @@ module Axlsx
def last_col
@last_col ||= last_cell.scan(/\D+/).first
end
-
end
end
diff --git a/lib/axlsx/workbook/worksheet/break.rb b/lib/axlsx/workbook/worksheet/break.rb
index bf019eeb..a9e5fb11 100644
--- a/lib/axlsx/workbook/worksheet/break.rb
+++ b/lib/axlsx/workbook/worksheet/break.rb
@@ -1,9 +1,7 @@
module Axlsx
-
# The Break class stores the details for row and column page breaks.
# @see RowBreaks, ColBreaks
class Break
-
include Axlsx::OptionsParser
include Axlsx::Accessors
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb
index 24865b4d..725b1a39 100644
--- a/lib/axlsx/workbook/worksheet/cell.rb
+++ b/lib/axlsx/workbook/worksheet/cell.rb
@@ -6,7 +6,6 @@ module Axlsx
#
# @see Worksheet#add_row
class Cell
-
include Axlsx::OptionsParser
# @param [Row] row The row this cell belongs to.
@@ -541,6 +540,5 @@ module Axlsx
v.to_s
end
end
-
end
end
diff --git a/lib/axlsx/workbook/worksheet/cell_serializer.rb b/lib/axlsx/workbook/worksheet/cell_serializer.rb
index 962b575d..b1ac8207 100644
--- a/lib/axlsx/workbook/worksheet/cell_serializer.rb
+++ b/lib/axlsx/workbook/worksheet/cell_serializer.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# The Cell Serializer class contains the logic for serializing cells based on their type.
class CellSerializer
class << self
diff --git a/lib/axlsx/workbook/worksheet/cfvo.rb b/lib/axlsx/workbook/worksheet/cfvo.rb
index c2a4c781..c9eb8d3d 100644
--- a/lib/axlsx/workbook/worksheet/cfvo.rb
+++ b/lib/axlsx/workbook/worksheet/cfvo.rb
@@ -7,7 +7,6 @@ module Axlsx
# @see ConditionalFormattingRule#initialize
#
class Cfvo
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/workbook/worksheet/cfvos.rb b/lib/axlsx/workbook/worksheet/cfvos.rb
index eb44f9d8..2fc2e65a 100644
--- a/lib/axlsx/workbook/worksheet/cfvos.rb
+++ b/lib/axlsx/workbook/worksheet/cfvos.rb
@@ -1,9 +1,7 @@
module Axlsx
-
#A collection of Cfvo objects that initializes with the required
#first two items
class Cfvos < SimpleTypedList
-
def initialize
super(Cfvo)
end
diff --git a/lib/axlsx/workbook/worksheet/col.rb b/lib/axlsx/workbook/worksheet/col.rb
index 29840c7a..6305b8c9 100644
--- a/lib/axlsx/workbook/worksheet/col.rb
+++ b/lib/axlsx/workbook/worksheet/col.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# The Col class defines column attributes for columns in sheets.
class Col
-
# Maximum column width limit in MS Excel is 255 characters
# https://support.microsoft.com/en-us/office/excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3
MAX_WIDTH = 255
@@ -139,6 +137,5 @@ module Axlsx
def to_xml_string(str = '')
serialized_tag('col', str)
end
-
end
end
diff --git a/lib/axlsx/workbook/worksheet/col_breaks.rb b/lib/axlsx/workbook/worksheet/col_breaks.rb
index c803fc70..df7da37b 100644
--- a/lib/axlsx/workbook/worksheet/col_breaks.rb
+++ b/lib/axlsx/workbook/worksheet/col_breaks.rb
@@ -1,10 +1,8 @@
module Axlsx
-
# A collection of Brake objects.
# Please do not use this class directly. Instead use
# Worksheet#add_break
class ColBreaks < SimpleTypedList
-
# Instantiates a new list restricted to Break types
def initialize
super Break
diff --git a/lib/axlsx/workbook/worksheet/color_scale.rb b/lib/axlsx/workbook/worksheet/color_scale.rb
index b93240a5..60b0e183 100644
--- a/lib/axlsx/workbook/worksheet/color_scale.rb
+++ b/lib/axlsx/workbook/worksheet/color_scale.rb
@@ -6,9 +6,7 @@ module Axlsx
# @see Worksheet#add_conditional_formatting
# @see ConditionalFormattingRule#initialize
class ColorScale
-
class << self
-
# These are the default conditional formatting value objects
# that define a two tone color gradient.
def default_cfvos
diff --git a/lib/axlsx/workbook/worksheet/cols.rb b/lib/axlsx/workbook/worksheet/cols.rb
index c0704343..7d93e603 100644
--- a/lib/axlsx/workbook/worksheet/cols.rb
+++ b/lib/axlsx/workbook/worksheet/cols.rb
@@ -1,9 +1,7 @@
module Axlsx
-
# The cols class manages the col object used to manage column widths.
# This is where the magic happens with autowidth
class Cols < SimpleTypedList
-
def initialize(worksheet)
raise ArgumentError, "you must provide a worksheet" unless worksheet.is_a?(Worksheet)
super Col
diff --git a/lib/axlsx/workbook/worksheet/comment.rb b/lib/axlsx/workbook/worksheet/comment.rb
index 5230c940..9efdb1f0 100644
--- a/lib/axlsx/workbook/worksheet/comment.rb
+++ b/lib/axlsx/workbook/worksheet/comment.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# A comment is the text data for a comment
class Comment
-
include Axlsx::OptionsParser
include Axlsx::Accessors
diff --git a/lib/axlsx/workbook/worksheet/comments.rb b/lib/axlsx/workbook/worksheet/comments.rb
index 72281f58..71a58c46 100644
--- a/lib/axlsx/workbook/worksheet/comments.rb
+++ b/lib/axlsx/workbook/worksheet/comments.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# Comments is a collection of Comment objects for a worksheet
class Comments < SimpleTypedList
-
# the vml_drawing that holds the shapes for comments
# @return [VmlDrawing]
attr_reader :vml_drawing
@@ -73,9 +71,6 @@ module Axlsx
comment.to_xml_string str
end
str << '</commentList></comments>'
-
end
-
end
-
end
diff --git a/lib/axlsx/workbook/worksheet/conditional_formatting.rb b/lib/axlsx/workbook/worksheet/conditional_formatting.rb
index 4fe6578d..2ff13682 100644
--- a/lib/axlsx/workbook/worksheet/conditional_formatting.rb
+++ b/lib/axlsx/workbook/worksheet/conditional_formatting.rb
@@ -5,7 +5,6 @@ module Axlsx
# @see Worksheet#add_conditional_formatting
# @see ConditionalFormattingRule
class ConditionalFormatting
-
include Axlsx::OptionsParser
# Creates a new {ConditionalFormatting} object
diff --git a/lib/axlsx/workbook/worksheet/conditional_formatting_rule.rb b/lib/axlsx/workbook/worksheet/conditional_formatting_rule.rb
index 8fa0c5b5..de1c4032 100644
--- a/lib/axlsx/workbook/worksheet/conditional_formatting_rule.rb
+++ b/lib/axlsx/workbook/worksheet/conditional_formatting_rule.rb
@@ -6,7 +6,6 @@ module Axlsx
# @see Worksheet#add_conditional_formatting
# @see ConditionalFormattingRule#initialize
class ConditionalFormattingRule
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/workbook/worksheet/conditional_formattings.rb b/lib/axlsx/workbook/worksheet/conditional_formattings.rb
index 23301ff8..ad2e9c97 100644
--- a/lib/axlsx/workbook/worksheet/conditional_formattings.rb
+++ b/lib/axlsx/workbook/worksheet/conditional_formattings.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# A simple, self serializing class for storing conditional formattings
class ConditionalFormattings < SimpleTypedList
-
# creates a new Tables object
def initialize(worksheet)
raise ArgumentError, "you must provide a worksheet" unless worksheet.is_a?(Worksheet)
@@ -20,5 +18,4 @@ module Axlsx
each { |item| item.to_xml_string(str) }
end
end
-
end
diff --git a/lib/axlsx/workbook/worksheet/data_bar.rb b/lib/axlsx/workbook/worksheet/data_bar.rb
index e6455f1c..c89c421d 100644
--- a/lib/axlsx/workbook/worksheet/data_bar.rb
+++ b/lib/axlsx/workbook/worksheet/data_bar.rb
@@ -6,7 +6,6 @@ module Axlsx
# @see Worksheet#add_conditional_formatting
# @see ConditionalFormattingRule#initialize
class DataBar
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
@@ -124,6 +123,5 @@ module Axlsx
end
end
end
-
end
end
diff --git a/lib/axlsx/workbook/worksheet/data_validations.rb b/lib/axlsx/workbook/worksheet/data_validations.rb
index 44afadf6..46cebe29 100644
--- a/lib/axlsx/workbook/worksheet/data_validations.rb
+++ b/lib/axlsx/workbook/worksheet/data_validations.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# A simple, self serializing class for storing conditional formattings
class DataValidations < SimpleTypedList
-
# creates a new Tables object
def initialize(worksheet)
raise ArgumentError, "you must provide a worksheet" unless worksheet.is_a?(Worksheet)
@@ -22,5 +20,4 @@ module Axlsx
str << '</dataValidations>'
end
end
-
end
diff --git a/lib/axlsx/workbook/worksheet/date_time_converter.rb b/lib/axlsx/workbook/worksheet/date_time_converter.rb
index 74199f2d..48d69d94 100644
--- a/lib/axlsx/workbook/worksheet/date_time_converter.rb
+++ b/lib/axlsx/workbook/worksheet/date_time_converter.rb
@@ -3,7 +3,6 @@ require "date"
module Axlsx
# The DateTimeConverter class converts both data and time types to their apprpriate excel serializations
class DateTimeConverter
-
# The date_to_serial method converts Date objects to the equivelant excel serialized forms
# @param [Date] date the date to be serialized
# @return [Numeric]
diff --git a/lib/axlsx/workbook/worksheet/dimension.rb b/lib/axlsx/workbook/worksheet/dimension.rb
index 48b3a1c2..eaf0d038 100644
--- a/lib/axlsx/workbook/worksheet/dimension.rb
+++ b/lib/axlsx/workbook/worksheet/dimension.rb
@@ -1,10 +1,8 @@
module Axlsx
-
# This class manages the dimensions for a worksheet.
# While this node is optional in the specification some readers like
# LibraOffice require this node to render the sheet
class Dimension
-
# the default value for the first cell in the dimension
# @return [String]
def self.default_first
diff --git a/lib/axlsx/workbook/worksheet/header_footer.rb b/lib/axlsx/workbook/worksheet/header_footer.rb
index db684fc9..5ad00565 100644
--- a/lib/axlsx/workbook/worksheet/header_footer.rb
+++ b/lib/axlsx/workbook/worksheet/header_footer.rb
@@ -9,7 +9,6 @@ module Axlsx
# @note The recommended way of managing header/footers is via Worksheet#header_footer
# @see Worksheet#initialize
class HeaderFooter
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
include Axlsx::Accessors
diff --git a/lib/axlsx/workbook/worksheet/icon_set.rb b/lib/axlsx/workbook/worksheet/icon_set.rb
index 42afaa4d..0042e757 100644
--- a/lib/axlsx/workbook/worksheet/icon_set.rb
+++ b/lib/axlsx/workbook/worksheet/icon_set.rb
@@ -6,7 +6,6 @@ module Axlsx
# @see Worksheet#add_conditional_formatting
# @see ConditionalFormattingRule#initialize
class IconSet
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/workbook/worksheet/merged_cells.rb b/lib/axlsx/workbook/worksheet/merged_cells.rb
index cb5bae93..60d95003 100644
--- a/lib/axlsx/workbook/worksheet/merged_cells.rb
+++ b/lib/axlsx/workbook/worksheet/merged_cells.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# A simple list of merged cells
class MergedCells < SimpleTypedList
-
# creates a new MergedCells object
# @param [Worksheet] worksheet
def initialize(worksheet)
diff --git a/lib/axlsx/workbook/worksheet/outline_pr.rb b/lib/axlsx/workbook/worksheet/outline_pr.rb
index f25ef4fa..5db0d825 100644
--- a/lib/axlsx/workbook/worksheet/outline_pr.rb
+++ b/lib/axlsx/workbook/worksheet/outline_pr.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# The OutlinePr class manages serialization of a worksheet's outlinePr element, which provides various
# options to control outlining.
class OutlinePr
diff --git a/lib/axlsx/workbook/worksheet/page_margins.rb b/lib/axlsx/workbook/worksheet/page_margins.rb
index b3f8ddee..2dec65e6 100644
--- a/lib/axlsx/workbook/worksheet/page_margins.rb
+++ b/lib/axlsx/workbook/worksheet/page_margins.rb
@@ -9,7 +9,6 @@ module Axlsx
# @see Worksheet#page_margins
# @see Worksheet#initialize
class PageMargins
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/workbook/worksheet/page_set_up_pr.rb b/lib/axlsx/workbook/worksheet/page_set_up_pr.rb
index 03378a1a..2242f2bc 100644
--- a/lib/axlsx/workbook/worksheet/page_set_up_pr.rb
+++ b/lib/axlsx/workbook/worksheet/page_set_up_pr.rb
@@ -1,9 +1,7 @@
module Axlsx
-
# Page setup properties of the worksheet
# This class name is not a typo, its spec.
class PageSetUpPr
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/workbook/worksheet/page_setup.rb b/lib/axlsx/workbook/worksheet/page_setup.rb
index b3117942..6281eb74 100644
--- a/lib/axlsx/workbook/worksheet/page_setup.rb
+++ b/lib/axlsx/workbook/worksheet/page_setup.rb
@@ -5,7 +5,6 @@ module Axlsx
# @see Worksheet#print_options
# @see Worksheet#initialize
class PageSetup
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/workbook/worksheet/pane.rb b/lib/axlsx/workbook/worksheet/pane.rb
index bff08bb5..9acfa14b 100644
--- a/lib/axlsx/workbook/worksheet/pane.rb
+++ b/lib/axlsx/workbook/worksheet/pane.rb
@@ -4,7 +4,6 @@ module Axlsx
# @note The recommended way to manage the pane options is via SheetView#pane
# @see SheetView#pane
class Pane
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
# Creates a new {Pane} object
diff --git a/lib/axlsx/workbook/worksheet/pivot_table.rb b/lib/axlsx/workbook/worksheet/pivot_table.rb
index 23d9828e..ed51d5cf 100644
--- a/lib/axlsx/workbook/worksheet/pivot_table.rb
+++ b/lib/axlsx/workbook/worksheet/pivot_table.rb
@@ -3,7 +3,6 @@ module Axlsx
# @note Worksheet#add_pivot_table is the recommended way to create tables for your worksheets.
# @see README for examples
class PivotTable
-
include Axlsx::OptionsParser
# Creates a new PivotTable object
diff --git a/lib/axlsx/workbook/worksheet/pivot_table_cache_definition.rb b/lib/axlsx/workbook/worksheet/pivot_table_cache_definition.rb
index b0e764ca..2c7c05e4 100644
--- a/lib/axlsx/workbook/worksheet/pivot_table_cache_definition.rb
+++ b/lib/axlsx/workbook/worksheet/pivot_table_cache_definition.rb
@@ -3,7 +3,6 @@ module Axlsx
# @note Worksheet#add_pivot_table is the recommended way to create tables for your worksheets.
# @see README for examples
class PivotTableCacheDefinition
-
include Axlsx::OptionsParser
# Creates a new PivotTable object
@@ -60,6 +59,5 @@ module Axlsx
str << '</cacheFields>'
str << '</pivotCacheDefinition>'
end
-
end
end
diff --git a/lib/axlsx/workbook/worksheet/pivot_tables.rb b/lib/axlsx/workbook/worksheet/pivot_tables.rb
index 912d9f41..8aaebea2 100644
--- a/lib/axlsx/workbook/worksheet/pivot_tables.rb
+++ b/lib/axlsx/workbook/worksheet/pivot_tables.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# A simple, self serializing class for storing pivot tables
class PivotTables < SimpleTypedList
-
# creates a new Tables object
def initialize(worksheet)
raise ArgumentError, "you must provide a worksheet" unless worksheet.is_a?(Worksheet)
@@ -20,5 +18,4 @@ module Axlsx
map{ |pivot_table| Relationship.new(pivot_table, PIVOT_TABLE_R, "../#{pivot_table.pn}") }
end
end
-
end
diff --git a/lib/axlsx/workbook/worksheet/print_options.rb b/lib/axlsx/workbook/worksheet/print_options.rb
index e57c2094..7ba52861 100644
--- a/lib/axlsx/workbook/worksheet/print_options.rb
+++ b/lib/axlsx/workbook/worksheet/print_options.rb
@@ -5,7 +5,6 @@ module Axlsx
# @see Worksheet#print_options
# @see Worksheet#initialize
class PrintOptions
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
include Axlsx::Accessors
diff --git a/lib/axlsx/workbook/worksheet/protected_range.rb b/lib/axlsx/workbook/worksheet/protected_range.rb
index e0da00df..07f9a20c 100644
--- a/lib/axlsx/workbook/worksheet/protected_range.rb
+++ b/lib/axlsx/workbook/worksheet/protected_range.rb
@@ -3,7 +3,6 @@ module Axlsx
# @note the recommended way to manage protected ranges with via Worksheet#protect_range
# @see Worksheet#protect_range
class ProtectedRange
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/workbook/worksheet/protected_ranges.rb b/lib/axlsx/workbook/worksheet/protected_ranges.rb
index d274cf80..d16dbbd6 100644
--- a/lib/axlsx/workbook/worksheet/protected_ranges.rb
+++ b/lib/axlsx/workbook/worksheet/protected_ranges.rb
@@ -1,9 +1,7 @@
module Axlsx
-
# A self serializing collection of ranges that should be protected in
# the worksheet
class ProtectedRanges < SimpleTypedList
-
attr_reader :worksheet
def initialize(worksheet)
diff --git a/lib/axlsx/workbook/worksheet/rich_text.rb b/lib/axlsx/workbook/worksheet/rich_text.rb
index 81af32b2..e5156047 100644
--- a/lib/axlsx/workbook/worksheet/rich_text.rb
+++ b/lib/axlsx/workbook/worksheet/rich_text.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# A simple, self serializing class for storing TextRuns
class RichText < SimpleTypedList
-
# creates a new RichText collection
# @param [String] text -optional The text to use in creating the first RichTextRun
# @param [Object] options -optional The options to use in creating the first RichTextRun
diff --git a/lib/axlsx/workbook/worksheet/rich_text_run.rb b/lib/axlsx/workbook/worksheet/rich_text_run.rb
index 89dcd157..44046709 100644
--- a/lib/axlsx/workbook/worksheet/rich_text_run.rb
+++ b/lib/axlsx/workbook/worksheet/rich_text_run.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# The RichTextRun class creates and self serializing text run.
class RichTextRun
-
include Axlsx::OptionsParser
attr_reader :value
diff --git a/lib/axlsx/workbook/worksheet/row.rb b/lib/axlsx/workbook/worksheet/row.rb
index ee5b9509..fc044124 100644
--- a/lib/axlsx/workbook/worksheet/row.rb
+++ b/lib/axlsx/workbook/worksheet/row.rb
@@ -159,5 +159,4 @@ module Axlsx
end
end
end
-
end
diff --git a/lib/axlsx/workbook/worksheet/row_breaks.rb b/lib/axlsx/workbook/worksheet/row_breaks.rb
index 0e6e8646..e4cbf4f2 100644
--- a/lib/axlsx/workbook/worksheet/row_breaks.rb
+++ b/lib/axlsx/workbook/worksheet/row_breaks.rb
@@ -1,9 +1,7 @@
module Axlsx
-
# A collection of break objects that define row breaks (page breaks) for printing and preview
class RowBreaks < SimpleTypedList
-
def initialize
super Break
end
diff --git a/lib/axlsx/workbook/worksheet/selection.rb b/lib/axlsx/workbook/worksheet/selection.rb
index 4c02d286..efa56056 100644
--- a/lib/axlsx/workbook/worksheet/selection.rb
+++ b/lib/axlsx/workbook/worksheet/selection.rb
@@ -4,7 +4,6 @@ module Axlsx
# @note The recommended way to manage the selection pane options is via SheetView#add_selection
# @see SheetView#add_selection
class Selection
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/workbook/worksheet/sheet_calc_pr.rb b/lib/axlsx/workbook/worksheet/sheet_calc_pr.rb
index 88ada9ae..b42ecb31 100644
--- a/lib/axlsx/workbook/worksheet/sheet_calc_pr.rb
+++ b/lib/axlsx/workbook/worksheet/sheet_calc_pr.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# the SheetCalcPr object for the worksheet
# This object contains calculation properties for the worksheet.
class SheetCalcPr
diff --git a/lib/axlsx/workbook/worksheet/sheet_data.rb b/lib/axlsx/workbook/worksheet/sheet_data.rb
index 0b697fbb..f245d07c 100644
--- a/lib/axlsx/workbook/worksheet/sheet_data.rb
+++ b/lib/axlsx/workbook/worksheet/sheet_data.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# This class manages the serialization of rows for worksheets
class SheetData
-
# Creates a new SheetData object
# @param [Worksheet] worksheet The worksheet that owns this sheet data.
def initialize(worksheet)
@@ -22,6 +20,5 @@ module Axlsx
end
str << '</sheetData>'
end
-
end
end
diff --git a/lib/axlsx/workbook/worksheet/sheet_format_pr.rb b/lib/axlsx/workbook/worksheet/sheet_format_pr.rb
index e0b981ef..de4c6e16 100644
--- a/lib/axlsx/workbook/worksheet/sheet_format_pr.rb
+++ b/lib/axlsx/workbook/worksheet/sheet_format_pr.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# Sheet formatting properties
# <xsd:complexType name="CT_SheetFormatPr">
# <xsd:attribute name="baseColWidth" type="xsd:unsignedInt" use="optional" default="8"/>
diff --git a/lib/axlsx/workbook/worksheet/sheet_pr.rb b/lib/axlsx/workbook/worksheet/sheet_pr.rb
index e369cb52..6f76b580 100644
--- a/lib/axlsx/workbook/worksheet/sheet_pr.rb
+++ b/lib/axlsx/workbook/worksheet/sheet_pr.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# The SheetPr class manages serialization of a worksheet's sheetPr element.
class SheetPr
include Axlsx::OptionsParser
diff --git a/lib/axlsx/workbook/worksheet/sheet_protection.rb b/lib/axlsx/workbook/worksheet/sheet_protection.rb
index d1aaf00c..c921d381 100644
--- a/lib/axlsx/workbook/worksheet/sheet_protection.rb
+++ b/lib/axlsx/workbook/worksheet/sheet_protection.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# The SheetProtection object manages worksheet protection options per sheet.
class SheetProtection
-
include Axlsx::OptionsParser
include Axlsx::SerializedAttributes
include Axlsx::Accessors
diff --git a/lib/axlsx/workbook/worksheet/sheet_view.rb b/lib/axlsx/workbook/worksheet/sheet_view.rb
index 104243ce..17a547ea 100644
--- a/lib/axlsx/workbook/worksheet/sheet_view.rb
+++ b/lib/axlsx/workbook/worksheet/sheet_view.rb
@@ -4,7 +4,6 @@ module Axlsx
# @note The recommended way to manage the sheet view is via Worksheet#sheet_view
# @see Worksheet#sheet_view
class SheetView
-
include Axlsx::OptionsParser
include Axlsx::Accessors
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/workbook/worksheet/table.rb b/lib/axlsx/workbook/worksheet/table.rb
index e660d26c..5053c5fd 100644
--- a/lib/axlsx/workbook/worksheet/table.rb
+++ b/lib/axlsx/workbook/worksheet/table.rb
@@ -3,7 +3,6 @@ module Axlsx
# @note Worksheet#add_table is the recommended way to create tables for your worksheets.
# @see README for examples
class Table
-
include Axlsx::OptionsParser
# Creates a new Table object
diff --git a/lib/axlsx/workbook/worksheet/table_style_info.rb b/lib/axlsx/workbook/worksheet/table_style_info.rb
index c4678310..f7b7bff4 100644
--- a/lib/axlsx/workbook/worksheet/table_style_info.rb
+++ b/lib/axlsx/workbook/worksheet/table_style_info.rb
@@ -1,5 +1,4 @@
module Axlsx
-
# The table style info class manages style attributes for defined tables in
# a worksheet
class TableStyleInfo
diff --git a/lib/axlsx/workbook/worksheet/tables.rb b/lib/axlsx/workbook/worksheet/tables.rb
index d033212c..bf6efe0c 100644
--- a/lib/axlsx/workbook/worksheet/tables.rb
+++ b/lib/axlsx/workbook/worksheet/tables.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# A simple, self serializing class for storing tables
class Tables < SimpleTypedList
-
# creates a new Tables object
def initialize(worksheet)
raise ArgumentError, "you must provide a worksheet" unless worksheet.is_a?(Worksheet)
@@ -30,5 +28,4 @@ module Axlsx
str << '</tableParts>'
end
end
-
end
diff --git a/lib/axlsx/workbook/worksheet/worksheet.rb b/lib/axlsx/workbook/worksheet/worksheet.rb
index a32bc5b6..c3960af3 100644
--- a/lib/axlsx/workbook/worksheet/worksheet.rb
+++ b/lib/axlsx/workbook/worksheet/worksheet.rb
@@ -1,7 +1,6 @@
require_relative "border_creator"
module Axlsx
-
# The Worksheet class represents a worksheet in the workbook.
class Worksheet
include Axlsx::OptionsParser
@@ -831,6 +830,5 @@ module Axlsx
return if !auto_filter.range
workbook.add_defined_name auto_filter.defined_name, name: '_xlnm._FilterDatabase', local_sheet_id: index, hidden: 1
end
-
end
end
diff --git a/lib/axlsx/workbook/worksheet/worksheet_comments.rb b/lib/axlsx/workbook/worksheet/worksheet_comments.rb
index e976ad5c..d8aed8e0 100644
--- a/lib/axlsx/workbook/worksheet/worksheet_comments.rb
+++ b/lib/axlsx/workbook/worksheet/worksheet_comments.rb
@@ -1,9 +1,7 @@
module Axlsx
-
# A wraper class for comments that defines its on worksheet
# serailization
class WorksheetComments
-
# Creates a new WorksheetComments object
# param [Worksheet] worksheet The worksheet comments in thes object belong to
def initialize(worksheet)
diff --git a/lib/axlsx/workbook/worksheet/worksheet_drawing.rb b/lib/axlsx/workbook/worksheet/worksheet_drawing.rb
index ae03ac0f..e461ffa9 100644
--- a/lib/axlsx/workbook/worksheet/worksheet_drawing.rb
+++ b/lib/axlsx/workbook/worksheet/worksheet_drawing.rb
@@ -1,11 +1,9 @@
module Axlsx
-
# This is a utility class for serialing the drawing node in a
# worksheet. Drawing objects have their own serialization that exports
# a drawing document. This is only for the single node in the
# worksheet
class WorksheetDrawing
-
# Creates a new WorksheetDrawing
# @param [Worksheet] worksheet
def initialize(worksheet)
diff --git a/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb b/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb
index 2a241287..f79bc814 100644
--- a/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb
+++ b/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb
@@ -1,8 +1,6 @@
module Axlsx
-
# A worksheet hyperlink object. Note that this is not the same as a drawing hyperlink object.
class WorksheetHyperlink
-
include Axlsx::OptionsParser
include Axlsx::Accessors
include Axlsx::SerializedAttributes
diff --git a/lib/axlsx/workbook/worksheet/worksheet_hyperlinks.rb b/lib/axlsx/workbook/worksheet/worksheet_hyperlinks.rb
index a242f0f8..5d5a2186 100644
--- a/lib/axlsx/workbook/worksheet/worksheet_hyperlinks.rb
+++ b/lib/axlsx/workbook/worksheet/worksheet_hyperlinks.rb
@@ -1,8 +1,6 @@
module Axlsx
-
#A collection of hyperlink objects for a worksheet
class WorksheetHyperlinks < SimpleTypedList
-
# Creates a new Hyperlinks collection
# @param [Worksheet] worksheet the worksheet that owns these hyperlinks
def initialize(worksheet)