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.
2 parents 270cfc1 + 8736b99 commit 33954fcCopy full SHA for 33954fc
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