Class: Rng::DatatypeDeclaration
- Inherits:
-
Object
- Object
- Rng::DatatypeDeclaration
- Defined in:
- lib/rng/datatype_declaration.rb
Overview
Represents a datatype library declaration in RNC
Example: datatypes xsd = “www.w3.org/2001/XMLSchema-datatypes”
Instance Attribute Summary collapse
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(prefix:, uri:) ⇒ DatatypeDeclaration
constructor
Initialize a datatype library declaration.
Constructor Details
#initialize(prefix:, uri:) ⇒ DatatypeDeclaration
Initialize a datatype library declaration
21 22 23 24 |
# File 'lib/rng/datatype_declaration.rb', line 21 def initialize(prefix:, uri:) @prefix = prefix @uri = uri end |
Instance Attribute Details
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
15 16 17 |
# File 'lib/rng/datatype_declaration.rb', line 15 def prefix @prefix end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
15 16 17 |
# File 'lib/rng/datatype_declaration.rb', line 15 def uri @uri end |