Class: Moxml::Adapter::CustomizedOga::XmlDeclaration

Inherits:
Oga::XML::XmlDeclaration
  • Object
show all
Defined in:
lib/moxml/adapter/customized_oga/xml_declaration.rb

Instance Method Summary collapse

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(options = {})
  @version    = options[:version] || "1.0"
  # encoding is optional, but Oga sets it to UTF-8 by default
  @encoding   = options[:encoding]
  @standalone = options[:standalone]
end