lib/ronin/formatting/extensions/http/integer.rb in ronin-support-0.1.0 vs lib/ronin/formatting/extensions/http/integer.rb in ronin-support-0.2.0.rc1

- old
+ new

@@ -26,30 +26,36 @@ # URI encodes the byte. # # @return [String] # The URI encoded byte. # + # @api public + # def uri_encode URI.encode(self.chr) end # # URI escapes the byte. # # @return [String] # The URI escaped byte. # + # @api public + # def uri_escape CGI.escape(self.chr) end # # Formats the byte for HTTP. # # @return [String] # The formatted byte. # + # @api public + # def format_http - "%%%x" % self + "%%%X" % self end end