class BibOut

Toplevel class for processing templates. Delegates everything to ErbBinding

Attributes

root_dir[RW]

Name of a directory containing template files. This is used as the base directory when one template is embedded within another.

Public Class Methods

new(root_dir=nil) click to toggle source
# File lib/bibout.rb, line 18
def initialize(root_dir=nil)
  @root_dir = root_dir
end

Public Instance Methods

process_file(bib, filename) click to toggle source

Processes a file containing a bibout template. Params:

bib

Name of BibTeX file

filename

Name of BibOut template file

# File lib/bibout.rb, line 26
def process_file(bib, filename)
  ErbBinding.new(bib, @root_dir).embed(filename)
end
process_string(bib, string) click to toggle source

Processes a string containing a bibout template. Params:

bib

Name of BibTeX file

filename

String containing text of BibOut template

# File lib/bibout.rb, line 34
def process_string(bib, string)
  ErbBinding.new(bib, @root_dir).process_string(string)
end