module ReservedWords
Constants
- DEFAULT_WORDS
- VERSION
Public Class Methods
add(word)
click to toggle source
# File lib/reserved_words.rb, line 14 def self.add(word) Array.wrap(word).each { |w| @reserved_words.add(w) } end
clear!()
click to toggle source
# File lib/reserved_words.rb, line 22 def self.clear! @reserved_words = SortedSet.new DEFAULT_WORDS.dup end
list()
click to toggle source
# File lib/reserved_words.rb, line 10 def self.list @reserved_words.to_a end
remove(word)
click to toggle source
# File lib/reserved_words.rb, line 18 def self.remove(word) @reserved_words.delete(word) end