Sha256: 4dd32f5dbc22714f0950c70b45db076e77b8e21d225e4bb0935bfd14f5653a1f
Contents?: true
Size: 792 Bytes
Versions: 12
Compression:
Stored size: 792 Bytes
Contents
module Ox # Represents an XML document. It has a fixed set of attributes which form # the XML prolog. A Document includes Elements. class Document < Element # Create a new Document. # [prolog] prolog attributes # [:version] version, typically '1.0' or '1.1' # [:encoding] encoding for the document, currently included but ignored # [:standalone] indicates the document is standalone def initialize(prolog={}) super(nil) @attributes = { } @attributes[:version] = prolog[:version] unless prolog[:version].nil? @attributes[:encoding] = prolog[:encoding] unless prolog[:encoding].nil? @attributes[:standalone] = prolog[:standalone] unless prolog[:standalone].nil? end end # Document end # Ox
Version data entries
12 entries across 12 versions & 1 rubygems