Class: OpenXml::Docx::Elements::Ruby

Inherits:
OpenXml::Docx::Element show all
Includes:
HasChildren, HasProperties
Defined in:
lib/openxml/docx/elements/ruby.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasProperties

included, #property_xml

Instance Attribute Details

#baseObject

Returns the value of attribute base


6
7
8
# File 'lib/openxml/docx/elements/ruby.rb', line 6

def base
  @base
end

#rubyObject

Returns the value of attribute ruby


6
7
8
# File 'lib/openxml/docx/elements/ruby.rb', line 6

def ruby
  @ruby
end

Instance Method Details

#to_xml(xml) ⇒ Object


24
25
26
27
28
29
30
# File 'lib/openxml/docx/elements/ruby.rb', line 24

def to_xml(xml)
  xml[namespace].public_send(tag, xml_attributes) {
    property_xml(xml)
    ruby_text_xml(xml)
    base_text_xml(xml)
  }
end