class Orchparty::Transformations::All

Public Instance Methods

transform(ast) click to toggle source
# File lib/orchparty/transformations/all.rb, line 4
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