Module: Booky::AST

Defined in:
lib/booky/ast.rb

Class Method Summary collapse

Class Method Details

.createObject



3
4
5
6
7
8
# File 'lib/booky/ast.rb', line 3

def self.create
  raise "File #{Booky.source} not found. Sorry".red if !File.exists?("#{Booky.source}")
  
  textile = Booky::Textile.precompile
  RedCloth.new(textile).to_ast
end