lib/messages_dictionary/injector.rb in messages_dictionary-0.0.1.rc2 vs lib/messages_dictionary/injector.rb in messages_dictionary-0.0.1
- old
+ new
@@ -24,16 +24,14 @@
raise KeyError, "#{key} cannot be found in the provided file..."
end
values.each do |k, v|
msg.gsub!(Regexp.new('\{\{' + k.to_s + '\}\}'), v.to_s)
end
-
transform = klass::DICTIONARY_CONF[:transform] || block
transform ?
transform.call(msg) :
klass::DICTIONARY_CONF[:output].send(klass::DICTIONARY_CONF[:method].to_sym, msg)
end
-
private :pretty_output
end
end
end
\ No newline at end of file