Class: Axlsx::PictureLocking
- Inherits:
-
Object
- Object
- Axlsx::PictureLocking
- Includes:
- Accessors, OptionsParser, SerializedAttributes
- Defined in:
- lib/axlsx/drawing/picture_locking.rb
Overview
The picture locking class defines the locking properties for pictures in your workbook.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PictureLocking
constructor
Creates a new PictureLocking object.
-
#to_xml_string(str = '') ⇒ String
Serializes the object.
Methods included from SerializedAttributes
#declared_attributes, included, #serialized_attributes, #serialized_element_attributes
Methods included from OptionsParser
Constructor Details
#initialize(options = {}) ⇒ PictureLocking
Creates a new PictureLocking object
29 30 31 32 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 29 def initialize(={}) @noChangeAspect = true end |
Instance Method Details
#to_xml_string(str = '') ⇒ String
Serializes the object
37 38 39 40 41 |
# File 'lib/axlsx/drawing/picture_locking.rb', line 37 def to_xml_string(str = '') str << '<a:picLocks ' serialized_attributes str str << '/>' end |