Module: Rabal::Util

Included in:
Rabal, PluginTree
Defined in:
lib/rabal/util.rb

Instance Method Summary collapse

Instance Method Details

#replace_known_words(str) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/rabal/util.rb', line 5

def replace_known_words(str)
    KNOWN_WORDS.each_pair do |word, call_me|
        if str.index(word) then
            str = str.gsub(word,call_me.call(self))
        end
    end
    str
end