Class: EasyCaptcha::Generator::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_captcha/generator/base.rb

Overview

base class for generators

Direct Known Subclasses

Default

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Base

generator for captcha images

Yields:

  • (_self)

Yield Parameters:



8
9
10
11
# File 'lib/easy_captcha/generator/base.rb', line 8

def initialize
  defaults
  yield self if block_given?
end

Instance Method Details

#defaultsObject

default values for generator



14
# File 'lib/easy_captcha/generator/base.rb', line 14

def defaults; end