/rmathguard

Ruby implementation of mathguard. Generate mathematical expression, which can be used as anti spam solution. With plugin can be used in Rails.

Primary LanguageRubyMIT LicenseMIT

RMathGuard

Inspired by PHP project mathguard.

Usage

Generate expression:

guard = RMathGuard::Expression.new
puts  guard.show

FAT       K1Z
  8         5  QBZ
R7N  21E  JNI
  F         2  U87
CNO       GVO
=> nil

Show result of expression:

guard.result
=> 0

Integration with Rails