class Odf::Element::Heading

Constants

XML_TAG

Public Class Methods

build(parent, text, options = {}) click to toggle source
# File lib/odf/element/heading.rb, line 8
def self.build(parent, text, options = {})
  new(parent, text, options)
end
new(parent, content, options = {}) click to toggle source
Calls superclass method Odf::Element::AbstractContenteable::new
# File lib/odf/element/heading.rb, line 12
def initialize(parent, content, options = {})
  options = { level: 1 }.merge(options)
  super(parent, content, options)
end