Class: Pressman::Builders::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/pressman/builders/builder.rb

Direct Known Subclasses

HtmlBuilder, LatexBuilder, PdfBuilder

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



5
6
7
# File 'lib/pressman/builders/builder.rb', line 5

def filename
  @filename
end

Class Method Details

.startObject



7
8
9
10
11
12
13
# File 'lib/pressman/builders/builder.rb', line 7

def self.start
  @@config = YAML.load_file "book.yml"

  Pressman::Builders::HtmlBuilder.new if ARGV.empty? || ARGV.include?("html")
  Pressman::Builders::LatexBuilder.new if ARGV.empty? || ARGV.include?("tex")
  Pressman::Builders::PdfBuilder.new if ARGV.empty? || ARGV.include?("pdf")
end