How to use host parameters in puppet custom facts?

Hi all,

its possible to get the value of Host pamameters in Puppet facts ?

Facter.add('mycustomfact') do
  setcode do
    #for e.g.  here
  end
end

thanks in advance