Class: Lutaml::Model::ExportTransformer

Inherits:
Transformer show all
Defined in:
lib/lutaml/model/services/transformer.rb

Instance Attribute Summary

Attributes inherited from Transformer

#attribute, #rule

Instance Method Summary collapse

Methods inherited from Transformer

call, #call, #initialize

Constructor Details

This class inherits a constructor from Lutaml::Model::Transformer

Instance Method Details

#transformation_methodsObject

Precedene of transformations (reverse order):

  1. Attribute transform

  2. Rule transform



40
41
42
43
44
45
# File 'lib/lutaml/model/services/transformer.rb', line 40

def transformation_methods
  [
    attribute&.transform&.[](:export),
    rule.transform[:export],
  ].compact
end