lib/raykit/secrets.rb



require 'time'

module Raykit
    # Provides functionality to record the time execution times

    class Secrets < Hash
        def hide(text)
            hidden=text
            self.each{|k,v|
                if(v.length > 0)
                    hidden=hidden.gsub(v,'****')
                end
            }
            hidden
        end
    end
end