Module: WhereToCLI::Helpers
- Defined in:
- lib/where_to_cli/helpers.rb
Class Method Summary collapse
Class Method Details
.check_location!(location) ⇒ Object
3 4 5 6 7 |
# File 'lib/where_to_cli/helpers.rb', line 3 def self.check_location!(location) return '.' if location.nil? raise "The location '#{location}' does not exist" unless File.exist? location location end |