module Softcover

Constants

BUILD_ALL_FORMATS

mobi calls epub, which calls html, so “all formats” is just mobi & pdf.

FORMATS
VERSION

Public Instance Methods

custom_styles() click to toggle source

Return the custom styles, if any.

# File lib/softcover.rb, line 52
def custom_styles
  custom_file = File.join(Softcover::Directories::STYLES, 'custom.sty')
  File.exist?(custom_file) ? File.read(custom_file) : ''
end
profiling?() click to toggle source
# File lib/softcover.rb, line 65
def profiling?
  return false if test?
  @profiling
end
set_test_mode!() click to toggle source
# File lib/softcover.rb, line 57
def set_test_mode!
  @test_mode = true
end
test?() click to toggle source
# File lib/softcover.rb, line 61
def test?
  @test_mode
end