Class: Captchah::Generators::Puzzle
- Inherits:
-
Object
- Object
- Captchah::Generators::Puzzle
- Defined in:
- lib/captchah/generators/puzzle.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(truth, difficulty, font) ⇒ Puzzle
constructor
A new instance of Puzzle.
Constructor Details
#initialize(truth, difficulty, font) ⇒ Puzzle
Returns a new instance of Puzzle.
10 11 12 13 14 15 16 |
# File 'lib/captchah/generators/puzzle.rb', line 10 def initialize(truth, difficulty, font) @truth = truth @difficulty = difficulty @font = font @color1 = '44,44,44' @color2 = '235,235,235' end |
Class Method Details
.call(*args) ⇒ Object
6 7 8 |
# File 'lib/captchah/generators/puzzle.rb', line 6 def self.call(*args) new(*args).send(:call) end |