Class: Rng::ForeignAttribute

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/rng/foreign_attribute.rb

Overview

Represents a foreign attribute (from a non-RELAX NG namespace) Used in annotation blocks like [eg:foo = “value”]

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, namespace: nil, value: nil) ⇒ ForeignAttribute

Returns a new instance of ForeignAttribute.



20
21
22
23
24
# File 'lib/rng/foreign_attribute.rb', line 20

def initialize(name: nil, namespace: nil, value: nil)
  @name = name
  @namespace = namespace
  @value = value
end