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