Sha256: 022ff7b9155834de2be82e515a916171c7b1ca58c4658aa2b7914f03daf03d16
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
class PanHandler class Configuration attr_accessor :default_options, :root_path attr_writer :pandoc def initialize @default_options = { :from => 'html', :to => 'odt', :standalone => true } 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.2 | lib/pan_handler/configuration.rb |