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