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
5 6 7 |
# File 'lib/orchparty/transformations/sort.rb', line 5 def transform(ast) AST::Node.new ast.deep_sort_by_key_and_sort_array(["command", "entrypoint"]) {|a, b| a.to_s <=> b.to_s } end |