Module: DHS::IsHref::ClassMethods
- Defined in:
- lib/dhs/concerns/is_href.rb
Instance Method Summary collapse
Instance Method Details
#href?(input) ⇒ Boolean
10 11 12 |
# File 'lib/dhs/concerns/is_href.rb', line 10 def href?(input) input.is_a?(String) && %r{^https?://}.match(input).present? end |