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.



9
10
11
# File 'lib/test/unit/xml/notationdecl_mixin.rb', line 9

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



23
24
25
26
# File 'lib/test/unit/xml/notationdecl_mixin.rb', line 23

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



16
17
18
# File 'lib/test/unit/xml/notationdecl_mixin.rb', line 16

def system
  parse_rest(@rest)[1]
end