public Method

DocType.public

This method retrieves the public identifier identifying the document’s DTD.

Method contributed by Henrik Martensson

Source Code

# File rexml/doctype.rb, line 148
def public
  case @external_id
  when "SYSTEM"
    nil
  when "PUBLIC"
    strip_quotes(@long_name)
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.