I have a hash like this in file1.rb
#file1.rb
h1 = {"k1"=>"v1", "k2"=>"75.1%"}
formatting (h1) #Function in file2.rb
From this file, I want to call a function in file2.rb
and pass this hash h1
#file2.rb
def formatting(h1)
.
.
.
end
How can I do it in Ruby?