Sha256: dbd5df9e7f658c5547f54328a09545b5797e4c182d12f4d07aad72382db004a9
Contents?: true
Size: 354 Bytes
Versions: 3
Compression:
Stored size: 354 Bytes
Contents
module XsdModel module DocumentAttributes FakeAttr = Struct.new(:name, :value) refine Nokogiri::XML::Document do def attributes attrs = {} attrs['encoding'] = FakeAttr.new('encoding', encoding) if encoding attrs['version'] = FakeAttr.new('version', version) if version attrs end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xsd_model-0.7.0 | lib/xsd_model/document_attributes.rb |
xsd_model-0.6.0 | lib/xsd_model/document_attributes.rb |
xsd_model-0.5.0 | lib/xsd_model/document_attributes.rb |