Module: Rpub

Defined in:
lib/rpub.rb,
lib/rpub/book.rb,
lib/rpub/epub.rb,
lib/rpub/chapter.rb,
lib/rpub/version.rb,
lib/rpub/epub/toc.rb,
lib/rpub/xml_file.rb,
lib/rpub/commander.rb,
lib/rpub/compressor.rb,
lib/rpub/epub/cover.rb,
lib/rpub/epub/content.rb,
lib/rpub/commands/base.rb,
lib/rpub/commands/help.rb,
lib/rpub/commands/main.rb,
lib/rpub/epub/html_toc.rb,
lib/rpub/commands/clean.rb,
lib/rpub/commands/stats.rb,
lib/rpub/epub/container.rb,
lib/rpub/hash_delegation.rb,
lib/rpub/commands/compile.rb,
lib/rpub/commands/package.rb,
lib/rpub/commands/preview.rb,
lib/rpub/subclass_tracker.rb,
lib/rpub/commands/generate.rb,
lib/rpub/compilation_helpers.rb

Defined Under Namespace

Modules: Commander, Commands, CompilationHelpers, HashDelegation, SubclassTracker Classes: Book, Chapter, Compressor, Epub, InvalidSubcommand, XmlFile

Constant Summary collapse

GEM_ROOT =
File.expand_path('../../', __FILE__)
NoConfiguration =
Class.new(StandardError)
KRAMDOWN_OPTIONS =
{
  :coderay_line_numbers => nil
}
VERSION =
'0.4.0'

Class Method Summary collapse

Class Method Details

.support_file(path) ⇒ String

Returns full path to a file that was relative to the gem support directory.

Returns:

  • (String)

    full path to a file that was relative to the gem support directory



52
53
54
# File 'lib/rpub.rb', line 52

def self.support_file(path)
  File.join(GEM_ROOT, 'support', path)
end