lib/rast/rast_spec.rb in rast-0.1.2.pre vs lib/rast/rast_spec.rb in rast-0.3.0.pre
- old
+ new
@@ -18,18 +18,20 @@
def init_pair(pair_config: {})
@pair[pair_config.keys.first.to_s] = pair_config.values.first.to_s
array = [@pair.to_a.first.reverse]
- @pair_reversed = { "#{array.first}".to_sym => array.last }
+ @pair_reversed = { array.first.to_s.to_sym => array.last }
self
end
def init_converters(converters: [])
@converters = {}
@variables.keys.each_with_index do |key, index|
- @variables[key].each { |element| @converters[element.to_s] = converters[index] }
+ @variables[key].each do |element|
+ @converters[element.to_s] = converters[index]
+ end
end
self
end