Adds method that returns a hash of public method names and values