def recaptcha_mailhide(*args, &block)
      options = args.extract_options!
      raise ArgumentError, "at least one argument is required (not counting options)" if args.empty?

      if block_given?
        url = RecaptchaMailhide.url_for(args.first)
        link_to(url, recaptcha_mailhide_options(url, options), &block)
      else
        if args.length == 1
          content = truncate_email(args.first, options)
          url = RecaptchaMailhide.url_for(args.first)
        else
          content = args.first
          url = RecaptchaMailhide.url_for(args.second)
        end
        link_to(content, url, recaptcha_mailhide_options(url, options))
      end
    end
def recaptcha_mailhide(*args, &block)
      options = args.extract_options!
      raise ArgumentError, "at least one argument is required (not counting options)" if args.empty?

      if block_given?
        url = RecaptchaMailhide.url_for(args.first)
        link_to(url, recaptcha_mailhide_options(url, options), &block)
      else
        if args.length == 1
          content = truncate_email(args.first, options)
          url = RecaptchaMailhide.url_for(args.first)
        else
          content = args.first
          url = RecaptchaMailhide.url_for(args.second)
        end
        link_to(content, url, recaptcha_mailhide_options(url, options))
      end
    end
Generates a link tag to a ReCAPTCHA Mailhide URL for the given email
 address.

 If a block is given it will use it to generate the content, and takes
 these attributes:

 * +email+ - The email address to hide
 * +options+ - See options below

 When no block is given it accepts two forms:

   # Just email
   recaptcha_mailhide(email, options = {})

   # Email and content
   recaptcha_mailhide(content, email, options = {})

 In the first instance it will process the email with
 <code>truncate_email</code> and use it as the link content.

 ==== Options

 Accepts every option supported by <code>link_to</code>, plus:

 [:popup]

   Set it to <code>true</code> to have the link open a popup window
   (through JavaScript and the <code>onclick</code> event).

   Can also be a hash of sub-options, which can be <code>:width</code> and
   <code>:height</code>, setting the size of the popup window.

 In case of not supplying your own content you can also pass options for
 <code>truncate_email</code>, e.g.:

   recaptcha_mailhide('foo@example.com', omission: '-', truncate_domain: true)