Class: Moxml::Adapter::CustomizedOga::XmlDeclaration
- Inherits:
-
Oga::XML::XmlDeclaration
- Object
- Oga::XML::XmlDeclaration
- Moxml::Adapter::CustomizedOga::XmlDeclaration
- Defined in:
- lib/moxml/adapter/customized_oga/xml_declaration.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ XmlDeclaration
constructor
A new instance of XmlDeclaration.
Constructor Details
#initialize(options = {}) ⇒ XmlDeclaration
Returns a new instance of XmlDeclaration.
9 10 11 12 13 14 |
# File 'lib/moxml/adapter/customized_oga/xml_declaration.rb', line 9 def initialize( = {}) @version = [:version] || "1.0" # encoding is optional, but Oga sets it to UTF-8 by default @encoding = [:encoding] @standalone = [:standalone] end |