use String.sub instead of String.gsub
use String.sub instead of String.gsub

no need for global replace, if there is more than one Attributes
section, the result will be wrong anyway

mapleoin/chef_attrdoc,fr34k8/chef_attrdoc