class Orchparty::Transformations::RemoveInternal

Public Instance Methods

transform(ast) click to toggle source
# File lib/orchparty/transformations/remove_internal.rb, line 5
def transform(ast)
  ast.applications.each do |_, application|
    application.delete_if {|k, _| k.to_s.start_with?("_")}
    application.services = application.services.each do |_, service|
      service.delete_if {|k, _| k.to_s.start_with?("_")}
    end
  end
  ast
end