lib/rast/rast_spec.rb in rast-0.3.0.pre vs lib/rast/rast_spec.rb in rast-0.4.0.pre
- old
+ new
@@ -17,11 +17,11 @@
end
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_s.to_sym => array.last }
+ array = [@pair.to_a.first.reverse].first
+ @pair_reversed = { array.first.to_s => array.last }
self
end
def init_converters(converters: [])
@converters = {}