Class: Lutaml::Yamls::Adapter::YamlsSequence
- Inherits:
-
Object
- Object
- Lutaml::Yamls::Adapter::YamlsSequence
- Defined in:
- lib/lutaml/yamls/adapter/yamls_sequence.rb
Instance Attribute Summary collapse
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
Instance Method Summary collapse
-
#initialize ⇒ YamlsSequence
constructor
A new instance of YamlsSequence.
- #map_document(position, to:, type:, collection: false) ⇒ Object
Constructor Details
#initialize ⇒ YamlsSequence
Returns a new instance of YamlsSequence.
9 10 11 |
# File 'lib/lutaml/yamls/adapter/yamls_sequence.rb', line 9 def initialize @rules = [] end |
Instance Attribute Details
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
7 8 9 |
# File 'lib/lutaml/yamls/adapter/yamls_sequence.rb', line 7 def rules @rules end |
Instance Method Details
#map_document(position, to:, type:, collection: false) ⇒ Object
13 14 15 16 |
# File 'lib/lutaml/yamls/adapter/yamls_sequence.rb', line 13 def map_document(position, to:, type:, collection: false) @rules << YamlsSequenceRule.new(position, to: to, type: type, collection: collection) end |