title: Undefined method for string
body: <p>I don't understand why I can't call the method <code>colorize</code> from color.rb.</p>
  
  <p>I wrote <code>include color</code> inside the class, but when I try to execute the script I get this error in <code>wget</code>:</p>
  
  <pre><code>undefined method `colorize' for #&lt;String:0x00000001152d30&gt;
  </code></pre>
  
  <p>This is the code:</p>
  
  <pre><code>$LOAD_PATH &lt;&lt; './lib'
   require 'color'
  
  class Download
   include color
   def wget(arr)
     FileUtils.cd('/mnt/list')
     site = "xxxxx"
      arr.each do |f|
        wget = system("wget #{site}#{f}")
        logger.info("wget: #{f}".colorize("blue"))
      end
   end
  end 
  </code></pre>
  
  <p>The file color.rb with the method <code>colorize</code> </p>
  
  <pre><code>module Color
  
   def colorize(color, options = {})
     background = options[:background] || options[:bg] || false
     style = options[:style]
     offsets = ["gray","red", "green", "yellow", "blue", "magenta", "cyan","white"]
     styles =   ["normal","bold","dark","italic","underline","xx","xx","underline","xx","strikethrough"]
     start = background ? 40 : 30
     color_code = start + (offsets.index(color) || 8)
     style_code = styles.index(style) || 0
     "\e[#{style_code};#{color_code}m#{self}\e[0m"
   end
  end 
  </code></pre>