method

datadir

ruby latest stable - Class: Gem
datadir(gem_name)
public

The path to the data directory specified by the gem name. If the package is not available as a gem, return nil.