Class: Latexpdf::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/latexpdf/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
# File 'lib/latexpdf/configuration.rb', line 5

def initialize
  @passes = 2
  @build_path = File.expand_path("../../tmp/", __dir__)
  @logger = Logger.new(STDERR).tap do |log|
    log.progname = "Latexpdf"
  end
end

Instance Attribute Details

#build_pathObject

Returns the value of attribute build_path.



3
4
5
# File 'lib/latexpdf/configuration.rb', line 3

def build_path
  @build_path
end

#loggerObject

Returns the value of attribute logger.



3
4
5
# File 'lib/latexpdf/configuration.rb', line 3

def logger
  @logger
end

#passesObject

Returns the value of attribute passes.



3
4
5
# File 'lib/latexpdf/configuration.rb', line 3

def passes
  @passes
end