Method: Terse::KeywordRuby#set_substitute

Defined in:
lib/terse/keyword_ruby.rb

#set_substituteObject

TODO this doesn’t work, needs to process the thing following the keyword, not the keyword itself



14
15
16
17
18
19
20
21
# File 'lib/terse/keyword_ruby.rb', line 14

def set_substitute
    case @keyword
        when "a", "r", "w"
            @substitute = ":" + @substitute
        when "req", "reqr"
            @substitute = "\"" + @substitute + "\"" unless ["\"", "'"].include? @substitute[0]
    end
end