I created a git repository using the below code in rugged..
require 'rugged'
$repopath='D:\Test12'
Rugged::Repository.init_at($repopath, true)
repo = Rugged::Repository.new($repopath)
puts repo.path
however, I didn't get any output when I execute the above code as ruby myfile.rb