summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/protected_ranges.rb
diff options
context:
space:
mode:
authorrandym <[email protected]>2017-04-01 18:45:54 +0900
committerrandym <[email protected]>2017-04-01 18:45:54 +0900
commit83e23982914e87bb4f2feb00c508580b8fa85cdb (patch)
tree26f13718f0a2494a65c73a2c3d95146cc50b5bf4 /lib/axlsx/workbook/worksheet/protected_ranges.rb
parentb4bdbfa6a3da344a7bd5a1d433be6488435b94f8 (diff)
downloadcaxlsx-83e23982914e87bb4f2feb00c508580b8fa85cdb.tar.gz
caxlsx-83e23982914e87bb4f2feb00c508580b8fa85cdb.zip
chore(doc): document some members
Diffstat (limited to 'lib/axlsx/workbook/worksheet/protected_ranges.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/protected_ranges.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/protected_ranges.rb b/lib/axlsx/workbook/worksheet/protected_ranges.rb
index 46a2546b..d274cf80 100644
--- a/lib/axlsx/workbook/worksheet/protected_ranges.rb
+++ b/lib/axlsx/workbook/worksheet/protected_ranges.rb
@@ -24,11 +24,14 @@ module Axlsx
last
end
+ # Serializes the protected ranges
+ # @param [String] str
+ # @return [String]
def to_xml_string(str = '')
return if empty?
str << '<protectedRanges>'
each { |range| range.to_xml_string(str) }
- str << '</protectedRanges>'
+ str << '</protectedRanges>'
end
end
end