module DHS::IsHref::ClassMethods

Public Instance Methods

href?(input) click to toggle source
# File lib/dhs/concerns/is_href.rb, line 10
def href?(input)
  input.is_a?(String) && %r{^https?://}.match(input).present?
end