diff options
| author | Geremia Taglialatela <[email protected]> | 2023-04-08 00:12:18 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-04-08 00:12:18 +0200 |
| commit | 5d68145521afe5c5912ceebae2f7e784eb5f8954 (patch) | |
| tree | 5289c654cb213de98a6c812fbe581e2609f6615a /lib/axlsx/content_type | |
| parent | 7f077b55bf963c6e855c6c9066c6aed4926fb8e3 (diff) | |
| download | caxlsx-5d68145521afe5c5912ceebae2f7e784eb5f8954.tar.gz caxlsx-5d68145521afe5c5912ceebae2f7e784eb5f8954.zip | |
Fix EmptyLines related offenses
Diffstat (limited to 'lib/axlsx/content_type')
| -rw-r--r-- | lib/axlsx/content_type/abstract_content_type.rb | 3 | ||||
| -rw-r--r-- | lib/axlsx/content_type/content_type.rb | 3 | ||||
| -rw-r--r-- | lib/axlsx/content_type/default.rb | 3 | ||||
| -rw-r--r-- | lib/axlsx/content_type/override.rb | 2 |
4 files changed, 0 insertions, 11 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' |
