Guest User

Untitled

a guest
May 27th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #
  2. class Statistics
  3. #...
  4. def draw type, field
  5. #...
  6. graph.add type.to_sym, '', table
  7.  
  8. graph.render :to => "#{graph_file}.svg"
  9. #graph.render :width => 300, :height => 200, :to => "#{graph_file}.png", :as => 'png'
  10. end
  11. end
  12.  
  13. # the call:
  14. stats.draw(pie, sex)
  15.  
  16. # Errors Out
  17. # ./statistics.rb:157:in `main': undefined local variable or method `pie' for main:Object (NameError)
  18. # from ./statistics.rb:162
Add Comment
Please, Sign In to add comment