Class: Orchparty::Transformations::All
- Inherits:
-
Object
- Object
- Orchparty::Transformations::All
- Defined in:
- lib/orchparty/transformations/all.rb
Instance Method Summary collapse
Instance Method Details
#transform(ast) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/orchparty/transformations/all.rb', line 6 def transform(ast) ast.applications.each do |_, application| application.services.transform_values! do |service| if application.all.is_a?(Hash) AST.service(application.all.deep_merge_concat(service)) else service end end end ast end |