Class: OpenXml::Docx::Elements::WordProcessingDrawingPositionOffset
- Inherits:
-
Element
- Object
- Element
- OpenXml::Docx::Elements::WordProcessingDrawingPositionOffset
show all
- Defined in:
- lib/openxml/docx/elements/word_processing_drawing_position_offset.rb
Constant Summary
AttributeBuilder::VALID_THEME_COLORS, AttributeBuilder::VALID_TYPES
Instance Method Summary
collapse
Methods inherited from Element
#name, name, #namespace, tag, #tag
#attributes, included, #render?
Instance Method Details
#<<(text) ⇒ Object
8
9
10
|
# File 'lib/openxml/docx/elements/word_processing_drawing_position_offset.rb', line 8
def <<(text)
value << text if text.is_a? String
end
|
#to_xml(xml) ⇒ Object
20
21
22
|
# File 'lib/openxml/docx/elements/word_processing_drawing_position_offset.rb', line 20
def to_xml(xml)
xml[namespace.to_s].public_send(tag, value, xml_attributes)
end
|
#value ⇒ Object
12
13
14
|
# File 'lib/openxml/docx/elements/word_processing_drawing_position_offset.rb', line 12
def value
@value ||= ""
end
|
#value=(new_value) ⇒ Object
16
17
18
|
# File 'lib/openxml/docx/elements/word_processing_drawing_position_offset.rb', line 16
def value=(new_value)
@value = new_value if new_value.is_a? String
end
|