lib/how_is.rb in how_is-18.1.0 vs lib/how_is.rb in how_is-19.0.0
- old
+ new
@@ -195,11 +195,12 @@
str.puts report
str.string
end
- # convert_keys({'foo' => 'bar'}, :to_sym)
- # => {:foo => 'bar'}
+ # @example
+ # convert_keys({'foo' => 'bar'}, :to_sym)
+ # # => {:foo => 'bar'}
def self.convert_keys(data, method_name)
data.map { |k, v| [k.send(method_name), v] }.to_h
end
private_class_method :convert_keys