Class: Verku::Dependency

Inherits:
Object
  • Object
show all
Defined in:
lib/verku/dependency.rb

Class Method Summary collapse

Class Method Details

.html2text?Boolean

Returns:

  • (Boolean)

11
12
13
# File 'lib/verku/dependency.rb', line 11

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

.kindlegen?Boolean

Returns:

  • (Boolean)

3
4
5
# File 'lib/verku/dependency.rb', line 3

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

.pygments_rb?Boolean

Returns:

  • (Boolean)

15
16
17
# File 'lib/verku/dependency.rb', line 15

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

.xelatex?Boolean

Returns:

  • (Boolean)

7
8
9
# File 'lib/verku/dependency.rb', line 7

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