module LHS::IsHref::ClassMethods

Public Instance Methods

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