Class: Orchparty::Transformations::Sort
- Inherits:
-
Object
- Object
- Orchparty::Transformations::Sort
- Defined in:
- lib/orchparty/transformations/sort.rb
Instance Method Summary collapse
Instance Method Details
#transform(ast) ⇒ Object
6 7 8 |
# File 'lib/orchparty/transformations/sort.rb', line 6 def transform(ast) AST::Node.new ast.deep_sort_by_key_and_sort_array(%w[command entrypoint]) { |a, b| a.to_s <=> b.to_s } end |