lib/web_purify/methods/whitelist.rb
# Remove a word from the whitelist
#
# @param  word  [String]  The word to remove from the whitelist
# @return       [Boolean] True if successful, false if not
Remove a word from the whitelist
Remove a word from the whitelist
def remove_from_whitelist(word)
      params = {
        :method => WebPurify::Constants.methods[:remove_from_whitelist],
        :word   => word
      }
      parsed = WebPurify::Request.query(text_request_base, @query_base, params)
      return parsed[:success]=='1'
    end
def remove_from_whitelist ( word ) params = { :method => WebPurify :: Constants . methods [ :remove_from_whitelist ] , :word => word } parsed = WebPurify :: Request . query ( text_request_base , @query_base , params ) return parsed [ :success ] == '1' end
Remove a word from the whitelist
Remove a word from the whitelist
True if successful, false if not
True if successful false if not
Boolean
word
The word to remove from the whitelist
The word to remove from the whitelist