Method: Range#each
- Defined in:
- lib/source/ruby.rb
#each ⇒ Object
FIX: Incomplete
4903 4904 4905 4906 4907 |
# File 'lib/source/ruby.rb', line 4903 def each `var start=this.__start__,end=this.__end__` `if(typeof(start)=='number'&&typeof(end)=='number'){if(!this.__exclusive__){end++;};for(var i=start;i<end;i++){try{#{yield `i`};}catch(e){switch(e.__keyword__){case 'next':break;case 'break':return e.__return__;break;case 'redo':--i;break;default:throw(e);};};};}` return self end |