Class: REXML::NotationDecl
- Inherits:
-
Object
- Object
- REXML::NotationDecl
- 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
-
#name ⇒ Object
This method retrieves the name of the notation.
-
#public ⇒ Object
This method retrieves the public identifier specified in the notation declaration.
-
#system ⇒ Object
This method retrieves the system identifier specified in the notation declaration.
Instance Method Details
#name ⇒ Object
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 |
#public ⇒ Object
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 |
#system ⇒ Object
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 |