lib/lutaml/model/key_value_mapping.rb in lutaml-model-0.1.0 vs lib/lutaml/model/key_value_mapping.rb in lutaml-model-0.2.1
- old
+ new
@@ -9,10 +9,16 @@
def initialize
@mappings = []
end
def map(name, to:, render_nil: false, with: {}, delegate: nil)
- @mappings << KeyValueMappingRule.new(name, to: to, render_nil: render_nil, with: with, delegate: delegate)
+ @mappings << KeyValueMappingRule.new(
+ name,
+ to: to,
+ render_nil: render_nil,
+ with: with,
+ delegate: delegate,
+ )
end
alias map_element map
end
end