A CaseIgnoringWordList is like a WordList, only that keys are compared case-insensitively.

Methods
Public Class methods
new(default = false, &block)

Creates a new WordList with default as default value.

Text case is ignored.

# File lib/coderay/helpers/word_list.rb, line 87
  def initialize default = false, &block
    block ||= proc do |h, k|
      h[k] = h.fetch k.downcase, default
    end
    super default 
  end
Public Instance methods
add(words, kind = true)

Add words to the list and associate them with kind.

# File lib/coderay/helpers/word_list.rb, line 100
  def add words, kind = true
    words.each do |word|
      self[word.downcase] = kind
    end
    self
  end
include?(word)

Checks if a word is included.

# File lib/coderay/helpers/word_list.rb, line 95
  def include? word
    has_key? word.downcase
  end