"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/row_renderer.rb" between
ruport-1.7.1.tar.gz and ruport-1.8.0.tar.gz

About: Ruport (Ruby Reports) is a simple, extensible reporting system built for Rubyists. It provides tools for data acquisition, database interaction, formatting, and parsing/munging.

row_renderer.rb  (ruport-1.7.1):row_renderer.rb  (ruport-1.8.0)
require "ruport" require "ruport"
class CSV2Something < Ruport::Controller class CSV2Something < Ruport::Controller
required_option :csv_file required_option :csv_file
stage :table_body stage :table_body
module Helpers module Helpers
def table_feeder def table_feeder
Table(options.csv_file,:has_names => false) { |t,r| yield(r) } Table(options.csv_file,:has_names => false) { |_t,r| yield(r) }
end end
end end
end end
class HTML < Ruport::Formatter::HTML class HTML < Ruport::Formatter::HTML
renders :html, :for => CSV2Something renders :html, :for => CSV2Something
def layout def layout
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)