Sha256: ef5206645495cee669c3fd96768262a727e41d8da2066c85c5c37ec70ba1304e
Contents?: true
Size: 264 Bytes
Versions: 2
Compression:
Stored size: 264 Bytes
Contents
# frozen_string_literal: true module LinkThumbnailer class URI attr_reader :attribute def initialize(uri) @attribute = uri.to_s end def valid? !!(attribute =~ ::URI::regexp) end def to_s attribute end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
link_thumbnailer-3.4.0 | lib/link_thumbnailer/uri.rb |
link_thumbnailer-3.3.2 | lib/link_thumbnailer/uri.rb |