Method: Flatulent#image
- Defined in:
- lib/flatulent.rb
#image(options = {}) ⇒ Object
518 519 520 521 522 523 524 525 526 527 528 529 |
# File 'lib/flatulent.rb', line 518 def image = {} require 'RMagick' grid = captcha.split(%r"\n").map{|row| row.split %r""} width = grid.first.size height = grid.size img = Magick::Image.new width, height img end |