Class: Orchparty::Transformations::RemoveInternal
- Inherits:
-
Object
- Object
- Orchparty::Transformations::RemoveInternal
- Defined in:
- lib/orchparty/transformations/remove_internal.rb
Instance Method Summary collapse
Instance Method Details
#transform(ast) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/orchparty/transformations/remove_internal.rb', line 6 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 |