Class: PanHandler::Configuration
- Inherits:
-
Object
- Object
- PanHandler::Configuration
- Defined in:
- lib/pan_handler/configuration.rb
Instance Attribute Summary collapse
-
#default_options ⇒ Object
Returns the value of attribute default_options.
- #pandoc ⇒ Object
-
#root_path ⇒ Object
Returns the value of attribute root_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_options ⇒ Object
Returns the value of attribute default_options.
3 4 5 |
# File 'lib/pan_handler/configuration.rb', line 3 def @default_options end |
#pandoc ⇒ Object
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_path ⇒ Object
Returns the value of attribute root_path.
3 4 5 |
# File 'lib/pan_handler/configuration.rb', line 3 def root_path @root_path end |