Class: BerkeleyLibrary::Util::ODS::XML::Style::TableCellProperties

Inherits:
ElementNode
  • Object
show all
Defined in:
lib/berkeley_library/util/ods/xml/style/table_cell_properties.rb

Instance Attribute Summary

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(protected, wrap: false, doc:) ⇒ TableCellProperties

rubocop:disable Style/KeywordParametersOrder



11
12
13
14
15
16
# File 'lib/berkeley_library/util/ods/xml/style/table_cell_properties.rb', line 11

def initialize(protected, wrap: false, doc:)
  super(:style, 'table-cell-properties', doc: doc)
  @protected = protected
  @wrap = wrap
  set_default_attributes!
end

Instance Method Details

#protected?Boolean

rubocop:enable Style/KeywordParametersOrder

Returns:

  • (Boolean)


19
20
21
# File 'lib/berkeley_library/util/ods/xml/style/table_cell_properties.rb', line 19

def protected?
  @protected
end

#wrap?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/berkeley_library/util/ods/xml/style/table_cell_properties.rb', line 23

def wrap?
  @wrap
end