lib/cross-stub/cache.rb in cross-stub-0.2.1 vs lib/cross-stub/cache.rb in cross-stub-0.2.2
- old
+ new
@@ -19,10 +19,10 @@
end
private
def init(opts, truncate)
- type, arg = opts.to_a[0].map(&:to_s)
+ type, arg = opts.to_a[0].map{|o| o.to_s }
@store =
begin
store_name = '%s%s' % [type[0..0].upcase, type[1..-1].downcase]
Stores.const_get(store_name).new(arg, truncate)
rescue