Sha256: c55647ed9ad2871c40cc4525787c2973cd234634bd9aa9153ff2518020fe3e55

Contents?: true

Size: 414 Bytes

Versions: 31

Compression:

Stored size: 414 Bytes

Contents

require 'rabbit/element/slide'
require 'rabbit/element/poppler-page'

module Rabbit
  module Element
    class PopplerSlide < Slide
      def initialize(page)
        @page = PopplerPage.new(page)
        super(@page)
      end

      def headline
        @page
      end

      def body
        @page
      end

      def title
        (@page.text.split(/\r?\n/, 2)[0] || super).chomp
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
rabbit-2.1.3 lib/rabbit/element/poppler-slide.rb
rabbit-2.1.2 lib/rabbit/element/poppler-slide.rb
rabbit-2.1.1 lib/rabbit/element/poppler-slide.rb
rabbit-2.1.0 lib/rabbit/element/poppler-slide.rb
rabbit-2.0.9 lib/rabbit/element/poppler-slide.rb
rabbit-2.0.8 lib/rabbit/element/poppler-slide.rb
rabbit-2.0.7 lib/rabbit/element/poppler-slide.rb
rabbit-2.0.6 lib/rabbit/element/poppler-slide.rb
rabbit-2.0.5 lib/rabbit/element/poppler-slide.rb
rabbit-2.0.4 lib/rabbit/element/poppler-slide.rb
rabbit-2.0.3 lib/rabbit/element/poppler-slide.rb
rabbit-2.0.2 lib/rabbit/element/poppler-slide.rb
rabbit-2.0.1 lib/rabbit/element/poppler-slide.rb
rabbit-2.0.0 lib/rabbit/element/poppler-slide.rb
rabbit-1.0.9 lib/rabbit/element/poppler-slide.rb
rabbit-1.0.8 lib/rabbit/element/poppler-slide.rb
rabbit-1.0.7 lib/rabbit/element/poppler-slide.rb
rabbit-1.0.6 lib/rabbit/element/poppler-slide.rb
rabbit-1.0.5 lib/rabbit/element/poppler-slide.rb
rabbit-1.0.4 lib/rabbit/element/poppler-slide.rb