Class: BerkeleyLibrary::Util::ODS::XML::Style::ParagraphProperties

Inherits:
ElementNode
  • Object
show all
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

Attributes inherited from ElementNode

#doc, #element_name, #namespace

Instance Method Summary collapse

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_distanceObject (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