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.
9 10 11 |
# File 'lib/test/unit/xml/notationdecl_mixin.rb', line 9 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
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 |
#system ⇒ Object
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 |