We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 270cfc1 commit 8736b99Copy full SHA for 8736b99
1 file changed
build/ruby/lib/tucana/shared/shared.data_type.rb
@@ -238,14 +238,16 @@ def self.from_hash(config)
238
def to_h
239
{
240
target: self.target,
241
- source: self.source.to_h,
+ source: self.source.map(&:to_h),
242
generic_combinations: self.generic_combinations.map(&:to_h),
243
}
244
end
245
246
def from_hash(config)
247
self.target = config[:target]
248
- self.source = DataTypeIdentifier.from_hash(config.fetch(:source))
+ self.source = config[:source].map do |source|
249
+ DataTypeIdentifier.from_hash(source)
250
+ end
251
self.generic_combinations = config.fetch(:generic_combinations, [])
252
self
253
0 commit comments