lib/reportbuilder.rb in reportbuilder-1.2.3 vs lib/reportbuilder.rb in reportbuilder-1.2.4
- old
+ new
@@ -49,11 +49,11 @@
# Name of report
attr_accessor :name
# Doesn't print a title if set to true
attr_accessor :no_title
# ReportBuilder version
- VERSION = '1.2.3'
+ VERSION = '1.2.4'
FormatNotFound=Class.new(Exception)
# Available formats
def self.builder_for(format)
format=format.to_s.downcase
@@ -85,10 +85,10 @@
else
out
end
end
# Create a new Report
- def initialize(options=Hash.new,&block)
+ def initialize(options=Hash.new, &block)
options[:name]||="Report "+Time.new.to_s
@no_title=options.delete :no_title
@name=options.delete :name
@options=options
@elements=Array.new