org.asciidoctor
Class Asciidoctor.Factory

java.lang.Object
  extended by org.asciidoctor.Asciidoctor.Factory
Enclosing interface:
Asciidoctor

public static class Asciidoctor.Factory
extends Object

Factory for creating a new instance of Asciidoctor interface.

Author:
lordofthejars

Constructor Summary
Asciidoctor.Factory()
           
 
Method Summary
static Asciidoctor create()
          Creates a new instance of Asciidoctor.
static Asciidoctor create(String gemPath)
          Creates a new instance of Asciidoctor and sets GEM_PATH environment variable to provided gemPath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Asciidoctor.Factory

public Asciidoctor.Factory()
Method Detail

create

public static Asciidoctor create()
Creates a new instance of Asciidoctor.

Returns:
Asciidoctor instance which uses JRuby to wraps Asciidoctor Ruby calls.

create

public static Asciidoctor create(String gemPath)
Creates a new instance of Asciidoctor and sets GEM_PATH environment variable to provided gemPath. This method is mostly used in OSGi environments.

Parameters:
gemPath - where gems are located.
Returns:
Asciidoctor instance which uses JRuby to wraps Asciidoctor Ruby calls.


Copyright © 2013. All Rights Reserved.