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

Inherits:
Container show all
Defined in:
lib/openxml/docx/elements/ruby.rb

Constant Summary

Constants included from AttributeBuilder

AttributeBuilder::VALID_THEME_COLORS, AttributeBuilder::VALID_TYPES

Instance Attribute Summary collapse

Attributes inherited from Container

#children

Instance Method Summary collapse

Methods inherited from Container

#<<, #initialize

Methods included from PropertyBuilder

included, #property_xml

Methods inherited from Element

#name, name, #namespace, tag, #tag

Methods included from AttributeBuilder

#attributes, included, #render?

Constructor Details

This class inherits a constructor from OpenXml::Docx::Elements::Container

Instance Attribute Details

#baseObject

Returns the value of attribute base.



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

def base
  @base
end

#rubyObject

Returns the value of attribute ruby.



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

def ruby
  @ruby
end

Instance Method Details

#to_xml(xml) ⇒ Object



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

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