![](http://www.gnu-darwin.org/hexley-gd-sm.png)
|
def XMLDecl.pull source
results = source.match( PATTERN, true )[1]
version = VERSION_RE.match( results )
version = version[1] unless version.nil?
encoding = ENCODING_RE.match(results)
encoding = encoding[1] unless encoding.nil?
standalone = STANDALONE_RE.match(results)
standalone = standalone[1] unless standalone.nil?
[version, encoding, standalone]
end
|