Method: Converter.replacing_variables
- Defined in:
- lib/undecided/converter.rb
.replacing_variables(rule, values) ⇒ Object
Replaces variables from rules with values
39 40 41 42 43 44 |
# File 'lib/undecided/converter.rb', line 39 def self.replacing_variables(rule, values) process_values(values).each do |k, v| rule.gsub! k.to_s, v.to_s end rule end |