Class: Pressman::Builders::Builder
- Inherits:
-
Object
- Object
- Pressman::Builders::Builder
- Defined in:
- lib/pressman/builders/builder.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
Class Method Summary collapse
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
5 6 7 |
# File 'lib/pressman/builders/builder.rb', line 5 def filename @filename end |
Class Method Details
.start ⇒ Object
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 |