Sha256: 298a271da382657d8875932e607753bc8a1b8aa99e7195ab9e1600417b5f35a3
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
class PanHandler class Configuration attr_accessor :default_options, :root_path attr_writer :pandoc def initialize @default_options = { :from => 'html', :to => 'odt' } end def pandoc @pandoc ||= (defined?(Bundler::GemfileError) ? `bundle exec which pandoc` : `which pandoc`).chomp end end class << self attr_accessor :configuration end def self.configuration @configuration ||= Configuration.new end def self.configure yield(configuration) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pan_handler-0.0.1 | lib/pan_handler/configuration.rb |