Sha256: 8bc6eec1b40f303adefd6933adb7186e6504c4c411ff2f9d76aef2bd117e42ae
Contents?: true
Size: 321 Bytes
Versions: 30
Compression:
Stored size: 321 Bytes
Contents
require 'link_thumbnailer/model' module LinkThumbnailer module Models class Title < ::LinkThumbnailer::Model attr_reader :node, :text def initialize(node, text = nil) @node = node @text = sanitize(text || node.text) end def to_s text end end end end
Version data entries
30 entries across 30 versions & 1 rubygems