Class: REXML::NotationDecl

Inherits:
Object
  • Object
show all
Defined in:
lib/test/unit/xml/notationdecl_mixin.rb

Overview

The REXML::NotationDecl mix-in adds methods that are useful for notation declarations, but not present in the standard REXML::NotationDecl class

Instance Method Summary collapse

Instance Method Details

#nameObject

This method retrieves the name of the notation.



11
12
13
# File 'lib/test/unit/xml/notationdecl_mixin.rb', line 11

def name
  @name
end

#publicObject

This method retrieves the public identifier specified in the notation declaration. If there is no public identifier defined, the method returns nil



25
26
27
28
# File 'lib/test/unit/xml/notationdecl_mixin.rb', line 25

def public
  return nil unless @middle == "PUBLIC"
  parse_rest(@rest)[0]
end

#systemObject

This method retrieves the system identifier specified in the notation declaration. If there is no system identifier defined, the method returns nil



18
19
20
# File 'lib/test/unit/xml/notationdecl_mixin.rb', line 18

def system
  parse_rest(@rest)[1]
end