pandoku 0.4 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,10 @@
1
1
  require File.dirname(__FILE__) + '/format'
2
2
 
3
3
  module Pandoku
4
- PANDOC_PATH = ENV['PANDOC_PATH'] || 'pandoc'
4
+ # The path of Pandoc executable binary.
5
+ PANDOC_PATH = ENV['PANDOC_PATH'] || 'pandoc' unless defined? PANDOC_PATH
5
6
 
7
+ # Pseudo IR for Pandoc.
6
8
  class Document
7
9
  attr_reader :format, :text
8
10
 
@@ -2,6 +2,7 @@ require 'open3'
2
2
  require File.dirname(__FILE__) + '/document'
3
3
 
4
4
  module Pandoku
5
+ # Abstract base class for formats.
5
6
  class Format
6
7
  attr_reader :options
7
8
 
@@ -1,7 +1,7 @@
1
1
  require File.dirname(File.dirname(__FILE__)) + '/format'
2
2
 
3
3
  module Pandoku::Formats
4
- # S5 HTML slide show format.
4
+ # S5 HTML slide show format. http://meyerweb.com/eric/tools/s5/
5
5
  #
6
6
  # == Available Options
7
7
  #
@@ -2,8 +2,10 @@ require File.dirname(__FILE__) + '/format'
2
2
 
3
3
  module Pandoku
4
4
  module Formats
5
+ # Array of registered format classes.
5
6
  LOOKUP_TABLE = []
6
7
 
8
+ # Exception class what be raised when the format cannot be found.
7
9
  class LookupError < IndexError; end
8
10
 
9
11
  # Find a format class by the +name+.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandoku
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.4"
4
+ version: "0.9"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hong, MinHee