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

Version Path
link_thumbnailer-2.2.3 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.2.2 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.2.1 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.2.0 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.1.0 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.0.4 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.0.3 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.0.2 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.0.1 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.0.0 lib/link_thumbnailer/models/title.rb