Class: PanHandler::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



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

def initialize
  @default_options = {
    :from => 'html',
    :to => 'odt',
    :standalone => true
  }
end

Instance Attribute Details

#default_optionsObject

Returns the value of attribute default_options.



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

def default_options
  @default_options
end

#pandocObject



14
15
16
# File 'lib/pan_handler/configuration.rb', line 14

def pandoc
  @pandoc ||= (defined?(Bundler::GemfileError) ? `bundle exec which pandoc` : `which pandoc`).chomp
end

#root_pathObject

Returns the value of attribute root_path.



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

def root_path
  @root_path
end