# Fwd: \[SOLUTION\] Mexican Blanket (#127)

**URL:** <https://www.ruby-forum.com/t/fwd-solution-mexican-blanket-127/106453>\
**Category:** Ruby\
**Created:** [June 10, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/fwd-solution-mexican-blanket-127/106453 "2007-06-10T19:18:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![willbailey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/e9c0ed/32.png) [@willbailey](https://www.ruby-forum.com/u/willbailey)\
**Post date:** [June 10, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/fwd-solution-mexican-blanket-127/106453/1 "2007-06-10T19:18:45Z")

</div>

I noticed there are some line wraps if you cut and paste from the email  
so  
here is the source file.

On 6/10/07, Will Bailey \< removed\_email\_address@domain.invalid\> wrote:

> * * *
> 
> ```
> @length = length
> def generate
> if @color_count[:color1] > 1
> @value += "01840"
> @color2 = @color1 < 2 ? @color1 + 1 : @color1 - 1
> @pattern = Pattern.new(@width+@height)
> 
> ```
> 
> in full color"  
> width:#{@scale}px; height:#{@scale}px;}\n.wrapper{border:2px solid #fff;  
> @html += “\n”
> 
> # Blanket.new accepts height, width, and scale (used for html version)
> 
> if **FILE** == $0  
> blanket = RubyQuiz::Blanket.new(\*ARGV)  
> end
> 
> * * *

–  
will bailey  
towers perrin  
804.852.6758
