Sha256: e86025373d651937db56d39950f840f75bce7f79c37baed384c4e33035aa2c6b

Contents?: true

Size: 371 Bytes

Versions: 10

Compression:

Stored size: 371 Bytes

Contents

module Kitabu
  class Dependency
    def self.kindlegen?
      @kindlegen ||= `which kindlegen` && $?.success?
    end

    def self.prince?
      @prince ||= `which prince` && $?.success?
    end

    def self.html2text?
      @html2text ||= `which html2text` && $?.success?
    end

    def self.pygments_rb?
      @pygments_rb ||= defined?(Pygments)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kitabu-1.0.6 lib/kitabu/dependency.rb
kitabu-1.0.5 lib/kitabu/dependency.rb
kitabu-1.0.4 lib/kitabu/dependency.rb
kitabu-1.0.3 lib/kitabu/dependency.rb
kitabu-1.0.2 lib/kitabu/dependency.rb
kitabu-1.0.1 lib/kitabu/dependency.rb
kitabu-1.0.0 lib/kitabu/dependency.rb
kitabu-1.0.0.rc4 lib/kitabu/dependency.rb
kitabu-1.0.0.rc3 lib/kitabu/dependency.rb
kitabu-1.0.0.rc2 lib/kitabu/dependency.rb