Class: BerkeleyLibrary::Util::ODS::XML::Style::ParagraphProperties
- Inherits:
-
ElementNode
- Object
- ElementNode
- BerkeleyLibrary::Util::ODS::XML::Style::ParagraphProperties
- Defined in:
- lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb
Constant Summary collapse
- DEFAULT_TAB_STOP_DISTANCE =
'0.5in'.freeze
Instance Attribute Summary collapse
-
#tab_stop_distance ⇒ Object
readonly
Returns the value of attribute tab_stop_distance.
Attributes inherited from ElementNode
#doc, #element_name, #namespace
Instance Method Summary collapse
-
#initialize(tab_stop_distance = DEFAULT_TAB_STOP_DISTANCE, doc:) ⇒ ParagraphProperties
constructor
A new instance of ParagraphProperties.
Methods inherited from ElementNode
#add_child, #attributes, #children, #clear_attribute, #create_element, #element, #ensure_element!, #prefix, #prefixed_attr_name, #set_attribute
Constructor Details
#initialize(tab_stop_distance = DEFAULT_TAB_STOP_DISTANCE, doc:) ⇒ ParagraphProperties
Returns a new instance of ParagraphProperties.
14 15 16 17 18 |
# File 'lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb', line 14 def initialize(tab_stop_distance = DEFAULT_TAB_STOP_DISTANCE, doc:) super(:style, 'paragraph-properties', doc: doc) @tab_stop_distance = tab_stop_distance set_default_attributes! end |
Instance Attribute Details
#tab_stop_distance ⇒ Object (readonly)
Returns the value of attribute tab_stop_distance.
12 13 14 |
# File 'lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb', line 12 def tab_stop_distance @tab_stop_distance end |