Skip to content

Instantly share code, notes, and snippets.

@kermit-klein
Created November 11, 2020 14:47
Show Gist options
  • Save kermit-klein/bbb114ef54ed3a7740ab1acaec2688b8 to your computer and use it in GitHub Desktop.
Save kermit-klein/bbb114ef54ed3a7740ab1acaec2688b8 to your computer and use it in GitHub Desktop.
cli checkparans
require 'thor'
require 'CheckParans'
module CheckParans
class CLI < Thor
desc "check_parans", "Determines if parenthesis are valid"
def check_parans(string)
puts CheckParans.valid_parentheses(string)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment