lib/thinreports/report/base.rb in thinreports-0.7.0 vs lib/thinreports/report/base.rb in thinreports-0.7.5

- old
+ new

@@ -140,33 +140,41 @@ end # @overload generate(type, options = {}) # Specify the generator type. # @param [Symbol] type + # @return [String] # @overload generate(options = {}) # Using the default generator type. - # @param [Hash] options ({}) - # @return [String] + # @param [Hash] options ({}) + # @return [String] def generate(*args) options = args.last.is_a?(::Hash) ? args.pop : {} type = args.first || ThinReports.config.generator.default ThinReports::Generator.new(type, self, options).generate end # @overload generate_file(type, filename, options = {}) # @param type (#generate) + # @return [void] # @overload generate_file(filename, options = {}) - # @param [String] filename - # @param options (see #generate) - # @return [void] + # @param [String] filename + # @param options (see #generate) + # @return [void] def generate_file(*args) options = args.last.is_a?(::Hash) ? args.pop : {} args.unshift(ThinReports.config.generator.default) if args.size == 1 type, filename = args ThinReports::Generator.new(type, self, options).generate_file(filename) end + # @see ThinReports::Core::Shape::Manager::Target#list + def list(id = nil, &block) + start_new_page if page.nil? || page.finalized? + page.list(id, &block) + end + # @return [ThinReports::Report::Events] def events internal.events end @@ -192,6 +200,6 @@ internal.finalized? end end end -end \ No newline at end of file +end