Sha256: 6997cd46b73d7909b1787714e2b13ac8d39da9746116ffb486eef77cec4d25cf
Contents?: true
Size: 892 Bytes
Versions: 2
Compression:
Stored size: 892 Bytes
Contents
module Mork class Report def initialize(im, opts={}) grid_type = opts[:grid_type] || :default grid_file = opts[:grid_file] || 'config/grids.yml' @grid = Grid.new grid_type, grid_file @sheet = Sheet.new(im, @grid) @chlist = opts[:chlist] || @grid.default_chlist end def sheet_code @sheet.code end def selected_choices # sc = [] # @chlist.each_with_index do |ch, i| # sc[i] = (0...ch).collect do |x| # puts "Q.#{i} Ch.#{x}" # @mimage.darkened? @ruler.cell(i, x) # end # end # sc end def highlight_all_choices @chlist.each_with_index do |ch, i| (0...ch).each do |x| @sheet.highlight_choice(i, x) end end @sheet.highlight_code end def write_sheet(fname) @sheet.write(fname) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mork-0.0.3 | lib/mork/report.rb |
mork-0.0.2 | lib/mork/report.rb |