Sha256: eda4d6df53a4d455a136c2874563fc6afe6481d2e5f259d8c257b8fec6512b54
Contents?: true
Size: 233 Bytes
Versions: 3
Compression:
Stored size: 233 Bytes
Contents
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
link_thumbnailer-3.3.1 | lib/link_thumbnailer/uri.rb |
link_thumbnailer-3.3.0 | lib/link_thumbnailer/uri.rb |
link_thumbnailer-3.2.1 | lib/link_thumbnailer/uri.rb |