Module: LHS::IsHref::ClassMethods

Defined in:
lib/lhs/concerns/is_href.rb

Instance Method Summary collapse

Instance Method Details

#href?(input) ⇒ Boolean

Returns:

  • (Boolean)

10
11
12
# File 'lib/lhs/concerns/is_href.rb', line 10

def href?(input)
  input.is_a?(String) && %r{^https?://}.match(input).present?
end