class Configurious::Operations::Replace
Attributes
part[RW]
Public Instance Methods
do_operation(dict, key)
click to toggle source
# File lib/configurious/operations.rb, line 88 def do_operation(dict, key) raise "Cannot replace key '#{key}' because it does not already exist" unless dict.has_key?(key) if @part old = dict[key] dict[key] = old.gsub(@part,@content) else dict[key] = @content end end