found bug in ruby code

This commit is contained in:
Eric Schulte 2009-05-22 06:56:34 -07:00
parent cc622b1383
commit f5dc857354
1 changed files with 15 additions and 1 deletions

View File

@ -423,7 +423,21 @@ example in the [[* emacs lisp source reference][emacs lisp source reference]].
* Bugs [7/9] * Bugs [7/10]
** TODO ruby new variable creation
Ruby doesn't seem able to handle the creation of new variables
#+srcname: bug-ruby-number-evaluation
#+begin_src ruby :var table=bug-numerical-table :results replace
total = 0
table.each{|n| total += n}
total/table.size
#+end_src
#+resname:
: -:4:in `main': undefined local variable or method `total' for main:Object (NameError)
: from -:7
** TODO R code execution seems to choke on certain inputs ** TODO R code execution seems to choke on certain inputs