lib/web_purify/methods/blacklist.rb
# Add a word to the blacklist
#
# @param  word        [String]  The word to add to the blacklist
# @param  deep_search [Integer] 1 if deep search on word, otherwise 0 for not (default 0)
# @return             [Boolean] True if successful, false if not
Add a word to the blacklist
Add a word to the blacklist
def add_to_blacklist(word, deep_search=0)
      params = {
        :method => WebPurify::Constants.methods[:add_to_blacklist],
        :word   => word,
        :ds     => deep_search
      }
      parsed = WebPurify::Request.query(text_request_base, @query_base, params)
      return parsed[:success]=='1'
    end
def add_to_blacklist ( word , deep_search = 0 ) params = { :method => WebPurify :: Constants . methods [ :add_to_blacklist ] , :word => word , :ds => deep_search } parsed = WebPurify :: Request . query ( text_request_base , @query_base , params ) return parsed [ :success ] == '1' end
Add a word to the blacklist
Add a word to the blacklist
True if successful, false if not
True if successful false if not
Boolean
word
The word to add to the blacklist
The word to add to the blacklist
deep_search
1 if deep search on word, otherwise 0 for not (default 0)
1 if deep search on word otherwise 0 for not ( default 0 )