Class: Rng::ForeignElement
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Rng::ForeignElement
- Defined in:
- lib/rng/foreign_element.rb
Overview
Represents a foreign element (from a non-RELAX NG namespace) Used in annotation blocks like [eg:foo [ “content” ]]
Instance Method Summary collapse
-
#initialize(name: nil, namespace: nil, content: nil, attributes: [], elements: []) ⇒ ForeignElement
constructor
A new instance of ForeignElement.
Constructor Details
#initialize(name: nil, namespace: nil, content: nil, attributes: [], elements: []) ⇒ ForeignElement
Returns a new instance of ForeignElement.
24 25 26 27 28 29 30 31 |
# File 'lib/rng/foreign_element.rb', line 24 def initialize(name: nil, namespace: nil, content: nil, attributes: [], elements: []) @name = name @namespace = namespace @content = content @attributes = attributes @elements = elements end |