diff --git a/lib/synvert/command.rb b/lib/synvert/command.rb index 39d2367..0f348c8 100644 --- a/lib/synvert/command.rb +++ b/lib/synvert/command.rb @@ -79,7 +79,10 @@ def available_rewriters # Query and print available rewriters. def query_available_rewriters(query, format) if format == 'json' - puts available_rewriters.select { |rewriter| rewriter[:group].include?(query) || rewriter[:name].include?(query) }.to_json + puts available_rewriters.select { |rewriter| + rewriter[:group].include?(query) || rewriter[:name].include?(query) + } +.to_json else Core::Rewriter.availables.each do |group, rewriters| if group.include?(query)