Class: Lutaml::Model::Xml::Oga::Document
- Inherits:
-
Oga::XML::Document
- Object
- Oga::XML::Document
- Lutaml::Model::Xml::Oga::Document
- Defined in:
- lib/lutaml/model/xml/oga/document.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Document
constructor
A new instance of Document.
- #text(value = nil) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Document
Returns a new instance of Document.
8 9 10 |
# File 'lib/lutaml/model/xml/oga/document.rb', line 8 def initialize( = {}) super end |
Instance Method Details
#text(value = nil) ⇒ Object
12 13 14 15 |
# File 'lib/lutaml/model/xml/oga/document.rb', line 12 def text(value = nil) children << ::Oga::XML::Text.new(text: value) self end |