Class: Orchparty::Transformations::RemoveInternal

Inherits:
Object
  • Object
show all
Defined in:
lib/orchparty/transformations/remove_internal.rb

Instance Method Summary collapse

Instance Method Details

#transform(ast) ⇒ Object



5
6
7
8
9
10
11
12
13
# 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