# Fwd: Unroller

**URL:** <https://www.ruby-forum.com/t/fwd-unroller/106517>\
**Category:** Ruby\
**Created:** [June 11, 2007, 3:47pm UTC](https://www.ruby-forum.com/t/fwd-unroller/106517 "2007-06-11T15:47:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbrubacher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ee59a6/32.png) [@fbrubacher](https://www.ruby-forum.com/u/fbrubacher)\
**Post date:** [June 11, 2007, 3:47pm UTC](https://www.ruby-forum.com/t/fwd-unroller/106517/1 "2007-06-11T15:47:11Z")

</div>

Hi! i was checking out the gem Unroller [http://unroller.rubyforge.org/](http://unroller.rubyforge.org/)  
that  
seems pretty promising but I think I couldn’t make it work right, I  
wrote a  
simple helloworld program :

require ‘rubygems’  
require ‘unroller’  
#Unroller::trace

def outs(n)  
if n == 3  
Unroller::trace do  
helloworld  
end  
else  
yield n  
end  
end

def helloworld  
puts “hello world”  
end

(1…10).each do |number|  
outs(number) { |x| puts x}  
end

I initially tried to trace all the program but it generated many  
warnings,  
still the output for tracking the call to the helloworld method provides  
some warnings, here’s the output :

1  
2  
| helloworld  
|  
unroller1.rb:8

| \ calling Object::helloworld

Object::helloworld (unroller1.rb:15) (call):  
Warning: Expected unroller1.rb:14 =~ /def.\*helloworld/, but was:  
| def helloworld

Object::helloworld (unroller1.rb:16) (line):  
Warning: Expected unroller1.rb:14 =~ /def.\*helloworld/, but was:  
| | puts “hello world y verano”

hello world y verano  
| / returning from Object::helloworld  
4  
5  
6  
7  
8  
9  
10

Am i doing something wrong?

Regards and Thanks

–  
Federico B.  
[www.fbrubacher.com](http://www.fbrubacher.com)

Colonial Duty Free Shop  
www.colonial.com.uy

---

<div class="post-metadata">

**Author:** ![fbrubacher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ee59a6/32.png) [@fbrubacher](https://www.ruby-forum.com/u/fbrubacher)\
**Post date:** [June 11, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/fwd-unroller/106517/2 "2007-06-11T17:07:33Z")

</div>

Wow, thanks for bringing such a cool tool to my attention.

Aur

---

<div class="post-metadata">

**Author:** ![fbrubacher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ee59a6/32.png) [@fbrubacher](https://www.ruby-forum.com/u/fbrubacher)\
**Post date:** [June 11, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/fwd-unroller/106517/3 "2007-06-11T18:45:52Z")

</div>

On 11.06.2007 17:06, SonOfLilit wrote:

> > 7  
> > 8  
> > 9  
> > 10
> > 
> > Am i doing something wrong?

Maybe there is a way to switch off these warnings. Is there a list of  
options available? I did not find one.

Kind regards

robert
