lib/thinreports/generator/configuration.rb in thinreports-0.7.7 vs lib/thinreports/generator/configuration.rb in thinreports-0.8.0

- old
+ new

@@ -1,30 +1,31 @@ # coding: utf-8 -module ThinReports +module Thinreports module Generator - + + # @deprecated This class will be removed in the next major version. class Configuration # @return [Symbol] attr_reader :default - + def initialize @default = :pdf end - - # @return [ThinReports::Generator::PDF::Configuration] + + # @return [Thinreports::Generator::PDF::Configuration] def pdf @pdf ||= PDF::Configuration.new end - + # @param [Symbol] type # @return [void] def default=(type) unless Generator.registry.key?(type) - raise ThinReports::Errors::UnknownGeneratorType.new(type) + raise Thinreports::Errors::UnknownGeneratorType.new(type) end @default = type end end - + end -end \ No newline at end of file +end