Method: Hanami::CLI::URL.valid?

Defined in:
lib/hanami/cli/url.rb

.valid?(url) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.0.0



33
34
35
36
37
# File 'lib/hanami/cli/url.rb', line 33

def valid?(url)
  return false if url.nil?

  url.start_with?(DEFAULT_URL_PREFIX)
end