Method: CodeRay::WordList#add

Defined in:
lib/coderay/helpers/word_list.rb

#add(words, value = true) ⇒ Object

Add words to the list and associate them with value.

Returns self, so you can concat add calls.



50
51
52
53
# File 'lib/coderay/helpers/word_list.rb', line 50

def add words, value = true
  words.each { |word| self[word] = value }
  self
end