Method: REXML::DocType#system

Defined in:
lib/rexml/doctype.rb

#systemObject

This method retrieves the system identifier identifying the document’s DTD

Method contributed by Henrik Martensson



158
159
160
161
162
163
164
165
# File 'lib/rexml/doctype.rb', line 158

def system
  case @external_id
  when "SYSTEM"
    strip_quotes(@long_name)
  when "PUBLIC"
    @uri.kind_of?(String) ? strip_quotes(@uri) : nil
  end
end