Skip to content

Commit 871e8c3

Browse files
committed
Fix bug of order type handling
1 parent 3fa6951 commit 871e8c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ruby/src/application.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
class Application
55
def self.run(dirname:, filename:, order: :asc)
6+
order = order.respond_to?(:to_sym) ? order.to_sym : order
67
instance = new(dirname, filename, order)
78
instance.validate_filename!
89
instance.validate_order!

0 commit comments

Comments
 (0)