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-3.3.1 lib/link_thumbnailer/models/title.rb
link_thumbnailer-3.3.0 lib/link_thumbnailer/models/title.rb
link_thumbnailer-3.2.1 lib/link_thumbnailer/models/title.rb
link_thumbnailer-3.2.0 lib/link_thumbnailer/models/title.rb
link_thumbnailer-3.1.2 lib/link_thumbnailer/models/title.rb
link_thumbnailer-3.1.1 lib/link_thumbnailer/models/title.rb
link_thumbnailer-3.1.0 lib/link_thumbnailer/models/title.rb
link_thumbnailer-3.0.3 lib/link_thumbnailer/models/title.rb
link_thumbnailer-3.0.2 lib/link_thumbnailer/models/title.rb
link_thumbnailer-3.0.1 lib/link_thumbnailer/models/title.rb
link_thumbnailer-3.0.0 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.6.1 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.6.0 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.5.2 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.5.1 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.5.0 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.4.0 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.3.2 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.3.1 lib/link_thumbnailer/models/title.rb
link_thumbnailer-2.3.0 lib/link_thumbnailer/models/title.rb